org.jboss.ha.client.loadbalance
Interface AopLoadBalancePolicy

All Superinterfaces:
LoadBalancePolicy, Serializable
All Known Implementing Classes:
FirstAvailable, FirstAvailableIdenticalAllProxies

public interface AopLoadBalancePolicy
extends LoadBalancePolicy

Extends the parent interface by adding support for passing in an AOP Invocation as an aid in making the choice of targets.

Version:
$Revision: 1.1 $
Author:
Brian Stansberry

Field Summary
 
Fields inherited from interface org.jboss.ha.client.loadbalance.LoadBalancePolicy
serialVersionUID
 
Method Summary
 Object chooseTarget(FamilyClusterInfo clusterFamily, org.jboss.aop.joinpoint.Invocation routingDecision)
          Called when the stub wishes to know on which node the next invocation must be performed.
 
Methods inherited from interface org.jboss.ha.client.loadbalance.LoadBalancePolicy
chooseTarget
 

Method Detail

chooseTarget

Object chooseTarget(FamilyClusterInfo clusterFamily,
                    org.jboss.aop.joinpoint.Invocation routingDecision)
Called when the stub wishes to know on which node the next invocation must be performed.

Parameters:
clusterFamily - A list of potential target nodes
routingDecision - The actual invocation object if the policy wants to have some kind of invocation-based routing strategy
Returns:
The selected target for the next invocation


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