|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ha.framework.interfaces.TransactionSticky
public class TransactionSticky
Root transaction sticky load balance policy class that checks whether there's a sticky target associated with the current invocation and based on that returns the associated target or delegates to the given load balance policy to choose a new target if there's no target associated with the invocation.
Constructor Summary | |
---|---|
TransactionSticky(LoadBalancePolicy delegate)
|
Method Summary | |
---|---|
protected Object |
chooseNewTarget(org.jboss.ha.framework.interfaces.FamilyClusterInfo familyClusterInfo,
Invocation invocation)
Choses a new target based on delegate load balance policy. |
Object |
chooseTarget(org.jboss.ha.framework.interfaces.FamilyClusterInfo clusterFamily)
|
Object |
chooseTarget(org.jboss.ha.framework.interfaces.FamilyClusterInfo clusterFamily,
Invocation routingDecision)
This method returns either, a new target based on RoundRobin policy, or if there's a ongoing transaction, the target associated with that transaction. |
void |
init(HARMIClient father)
Initialize the policy with a reference to its parent stub. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionSticky(LoadBalancePolicy delegate)
Method Detail |
---|
public Object chooseTarget(org.jboss.ha.framework.interfaces.FamilyClusterInfo clusterFamily, Invocation routingDecision)
familyClusterInfo
- cluster family informationinvocation
- current invocation
public void init(HARMIClient father)
LoadBalancePolicy
father
- The stub that owns the policypublic Object chooseTarget(org.jboss.ha.framework.interfaces.FamilyClusterInfo clusterFamily)
chooseTarget
in interface org.jboss.ha.client.loadbalance.LoadBalancePolicy
protected Object chooseNewTarget(org.jboss.ha.framework.interfaces.FamilyClusterInfo familyClusterInfo, Invocation invocation)
familyClusterInfo
- cluster family informationinvocation
- current invocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |