added methods that return num and pointer to registered load balancers. jetley/orb3dlb
authorPritish Jetley <pjetley2@illinois.edu>
Tue, 7 Sep 2010 21:14:59 +0000 (16:14 -0500)
committerPritish Jetley <pjetley2@illinois.edu>
Tue, 7 Sep 2010 21:14:59 +0000 (16:14 -0500)
also added method to obtain groupid of BaseLB

src/ck-ldb/BaseLB.h
src/ck-ldb/LBDatabase.h

index ea18817016e89267370831067603d179da7096c9..41db7f0b932385fc8ffd1f36e4458d6532705068 100644 (file)
@@ -126,6 +126,8 @@ public:
   virtual int  useMem()  { return 0; }
   virtual void pup(PUP::er &p);
   virtual void flushStates();
+
+  CkGroupID getGroupID() {return thisgroup;}
 };
 
 /// migration decision for an obj.
index c32082627f5b1b2ad762b2c4e61add6416c07624..1d6bd8ce9977134c3699b178484a49f7e59b70d5 100644 (file)
@@ -346,6 +346,10 @@ private:
   CkVec<BaseLB *>   loadbalancers;
   int nloadbalancers;
 
+public:
+  BaseLB** getLoadBalancers() {return loadbalancers.getVec();}
+  int getNLoadBalancers() {return nloadbalancers;}
+
 public:
   static int manualOn;