|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for load-balancing policies. It is possible to implement many different load-balancing policies by implementing this simple interface and using it in the different clustered services (home interface of SLSB for example)
Field Summary | |
static long |
serialVersionUID
The serialVersionUID |
Method Summary | |
java.lang.Object |
chooseTarget(FamilyClusterInfo (src) clusterFamily)
Called when the stub wishes to know on which node the next invocation must be performed. |
java.lang.Object |
chooseTarget(FamilyClusterInfo (src) clusterFamily,
Invocation (src) routingDecision)
Called when the stub wishes to know on which node the next invocation must be performed. |
void |
init(HARMIClient (src) father)
Initialize the policy with a reference to its parent stub. |
Field Detail |
public static final long serialVersionUID
Method Detail |
public void init(HARMIClient (src) father)
father
- The stub that owns the policypublic java.lang.Object chooseTarget(FamilyClusterInfo (src) clusterFamily)
clusterFamily
- A list of potential target nodes
public java.lang.Object chooseTarget(FamilyClusterInfo (src) clusterFamily, Invocation (src) routingDecision)
clusterFamily
- A list of potential target nodesroutingDecision
- The actual invocation object if the policy wants
to have some kind of invocation-based routing strategy
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |