|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.loadbalancing.LoadBalancer
org.objectweb.proactive.p2p.loadbalancer.P2PLoadBalancer
Field Summary |
Fields inherited from class org.objectweb.proactive.loadbalancing.LoadBalancer |
lm, logger, myLoad, normalization, ranking, underloaded |
Constructor Summary | |
P2PLoadBalancer(P2PService p2pSer)
|
Method Summary | |
boolean |
AreYouUnderloaded(double remoteRanking)
This method is to know if this machine is underloaded and "better" than who want to send active objects receive its active objects. |
void |
ImStealingYou(double remoteRanking,
java.lang.String remoteNodeAddress)
|
void |
startBalancing()
This method use the P2P infrastructure to search nodes which can receive its active objects. |
void |
stealWork()
This method use the P2P infrastructure to search nodes which I can steal work. |
Methods inherited from class org.objectweb.proactive.loadbalancing.LoadBalancer |
AreYouUnderloaded, register, sendActiveObjectsTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public P2PLoadBalancer(P2PService p2pSer)
Method Detail |
public void startBalancing()
public void stealWork()
public boolean AreYouUnderloaded(double remoteRanking)
remoteRanking
- ranking of the overloaded machine
true
if this machine is underloaded in relation to the overloaded one.
Else false
.public void ImStealingYou(double remoteRanking, java.lang.String remoteNodeAddress)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |