VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadBalancingFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: loadBalancingFactory.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrfGuiCore/vrfGuiCore.h>
17 
18 #include "vrfutil/scenario.h"
19 
20 #include <vector>
21 #include <string>
22 
23 namespace makVrf
24 {
26  {
27  public:
28  typedef std::vector<DtLoadBalancingFcnInfo> DtLoadBalancerMap;
29 
30  public:
32  virtual ~DtLoadBalancingFactory();
33 
34  static void addLoadBalancingFunction(const std::string& name, DtLoadBalancingFcn fcn, void* usr);
35  static void removeLoadBalancingFunction(const std::string& name);
36  static bool loadBalancingInformation(const std::string& name, DtLoadBalancingFcnInfo& fcn);
37 
38  static const DtLoadBalancerMap& loadBalancers();
39 
40  protected:
42  };
43 }
44 
bool(* DtLoadBalancingFcn)(DtAddressMap *map, const DtList *backends, bool &remapped, void *usr)
Return true from this function to signal success of load balancing, however, set remapped to true if ...
Definition: scenario.h:583
static DtLoadBalancerMap gLoadBalancingFunctions
Definition: loadBalancingFactory.h:41
Definition: loadBalancingFactory.h:25
Definition: scenario.h:588
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
std::vector< DtLoadBalancingFcnInfo > DtLoadBalancerMap
Definition: loadBalancingFactory.h:28

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)