org.jboss.ha.client.loadbalance
Interface LoadBalancePolicy

All Superinterfaces:
Serializable
All Known Subinterfaces:
AopLoadBalancePolicy
All Known Implementing Classes:
FirstAvailable, FirstAvailable, FirstAvailableIdenticalAllProxies, FirstAvailableIdenticalAllProxies, RandomRobin, RoundRobin

public interface LoadBalancePolicy
extends Serializable

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)

Version:
$Revision: 57642 $
Author:
Bill Burke., Sacha Labourey., brian.stansberry@jboss.com

Field Summary
static long serialVersionUID
          The serialVersionUID
 
Method Summary
 Object chooseTarget(FamilyClusterInfo clusterFamily)
          Gets the target for the next remote call.
 

Field Detail

serialVersionUID

static final long serialVersionUID
The serialVersionUID

Since:
1.3.4.2
See Also:
Constant Field Values
Method Detail

chooseTarget

Object chooseTarget(FamilyClusterInfo clusterFamily)
Gets the target for the next remote call.

Called when the client wishes to know on which node the next invocation must be performed.

Parameters:
clusterFamily - object encapsulating a list of potential target nodes
Returns:
The selected target for the next invocation


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.