|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate
A ClientClusteredConnectionFactoryDelegate. It DOESN'T extend DelegateSupport, because none of DelegateSupport's attributes make sense here: there is no corresponding enpoint on the server, there's no ID, etc. This is just a "shallow" delegate, that in turn delegates to its sub-delegates (ClientConnectionFactoryDelegate instances)
Constructor Summary | |
ClientClusteredConnectionFactoryDelegate(ClientConnectionFactoryDelegate[] delegates,
java.util.Map failoverMap,
LoadBalancingPolicy loadBalancingPolicy,
boolean supportsFailover)
|
Method Summary | |
CreateConnectionResult |
createConnectionDelegate(java.lang.String username,
java.lang.String password,
int failedNodeID)
This invocation should either be handled by the client-side interceptor chain or by the server-side endpoint. |
byte[] |
getClientAOPStack()
|
ClientConnectionFactoryDelegate[] |
getDelegates()
|
java.util.Map |
getFailoverMap()
|
IDBlock |
getIdBlock(int size)
This invocation should either be handled by the client-side interceptor chain or by the server-side endpoint. |
LoadBalancingPolicy |
getLoadBalancingPolicy()
|
boolean |
isSupportsFailover()
|
void |
setDelegates(ClientConnectionFactoryDelegate[] dels)
|
void |
setFailoverMap(java.util.Map failoverMap)
|
java.lang.String |
toString()
|
void |
updateFailoverInfo(ClientConnectionFactoryDelegate[] delegates,
java.util.Map failoverMap)
Method used to update the delegate and failoverMap during viewChange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClientClusteredConnectionFactoryDelegate(ClientConnectionFactoryDelegate[] delegates, java.util.Map failoverMap, LoadBalancingPolicy loadBalancingPolicy, boolean supportsFailover)
Method Detail |
public byte[] getClientAOPStack() throws JMSException
getClientAOPStack
in interface ConnectionFactoryEndpoint
JMSException
public CreateConnectionResult createConnectionDelegate(java.lang.String username, java.lang.String password, int failedNodeID) throws JMSException
createConnectionDelegate
in interface ConnectionFactoryEndpoint
failedNodeID
- - zero or positive values mean the connection creation attempt is result
of failover. Negative values are ignored (mean regular connection creation attempt).
JMSException
public IDBlock getIdBlock(int size) throws JMSException
JMSException
public ClientConnectionFactoryDelegate[] getDelegates()
public void setDelegates(ClientConnectionFactoryDelegate[] dels)
public java.util.Map getFailoverMap()
public void setFailoverMap(java.util.Map failoverMap)
public LoadBalancingPolicy getLoadBalancingPolicy()
public boolean isSupportsFailover()
public void updateFailoverInfo(ClientConnectionFactoryDelegate[] delegates, java.util.Map failoverMap)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |