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)
author: Bill Burke. author: Sacha Labourey. version: $Revision: 57188 $
chooseTarget(FamilyClusterInfo clusterFamily, Invocation routingDecision) Called when the stub wishes to know on which node the next invocation must
be performed.
public void
init(HARMIClient father) Initialize the policy with a reference to its parent stub.
Called when the stub wishes to know on which node the next invocation must
be performed.
Parameters: clusterFamily - A list of potential target nodes The selected target for the next invocation
Called when the stub wishes to know on which node the next invocation must
be performed.
Parameters: clusterFamily - A list of potential target nodes Parameters: routingDecision - The actual invocation object if the policy wantsto have some kind of invocation-based routing strategy The selected target for the next invocation
Initialize the policy with a reference to its parent stub. the load-balancing policy
implementation can use HARMIClient data to take its decision
Parameters: father - The stub that owns the policy