|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoadBalancePolicy
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 | |
---|---|
Object |
chooseTarget(FamilyClusterInfo clusterFamily)
Called when the stub wishes to know on which node the next invocation must be performed. |
Object |
chooseTarget(FamilyClusterInfo clusterFamily,
org.jboss.invocation.Invocation routingDecision)
Called when the stub wishes to know on which node the next invocation must be performed. |
void |
init(HARMIClient father)
Initialize the policy with a reference to its parent stub. |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
void init(HARMIClient father)
father
- The stub that owns the policyObject chooseTarget(FamilyClusterInfo clusterFamily)
clusterFamily
- A list of potential target nodes
Object chooseTarget(FamilyClusterInfo clusterFamily, org.jboss.invocation.Invocation 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 NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |