org.jboss.jms.server.endpoint
Class ServerConnectionFactoryEndpoint
java.lang.Object
org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint
- All Implemented Interfaces:
- ConnectionFactoryEndpoint
- public class ServerConnectionFactoryEndpoint
- extends java.lang.Object
- implements ConnectionFactoryEndpoint
Concrete implementation of ConnectionFactoryEndpoint
- Version:
- $Revision: 2717 $
$Id: ServerConnectionFactoryEndpoint.java 2717 2007-05-19 15:36:10Z timfox $
- Author:
- Ovidiu Feodorov, Tim Fox
Constructor Summary |
ServerConnectionFactoryEndpoint(int id,
ServerPeer serverPeer,
java.lang.String defaultClientID,
JNDIBindings jndiBindings,
int preFetchSize,
int defaultTempQueueFullSize,
int defaultTempQueuePageSize,
int defaultTempQueueDownCacheSize,
int dupsOKBatchSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
defaultTempQueueFullSize
protected int defaultTempQueueFullSize
defaultTempQueuePageSize
protected int defaultTempQueuePageSize
defaultTempQueueDownCacheSize
protected int defaultTempQueueDownCacheSize
dupsOKBatchSize
protected int dupsOKBatchSize
ServerConnectionFactoryEndpoint
public ServerConnectionFactoryEndpoint(int id,
ServerPeer serverPeer,
java.lang.String defaultClientID,
JNDIBindings jndiBindings,
int preFetchSize,
int defaultTempQueueFullSize,
int defaultTempQueuePageSize,
int defaultTempQueueDownCacheSize,
int dupsOKBatchSize)
- Parameters:
jndiBindings
- - names under which the corresponding JBossConnectionFactory is bound in
JNDI.
createConnectionDelegate
public CreateConnectionResult createConnectionDelegate(java.lang.String username,
java.lang.String password,
int failedNodeID)
throws JMSException
- Specified by:
createConnectionDelegate
in interface ConnectionFactoryEndpoint
- Parameters:
failedNodeID
- - zero or positive values mean the connection creation attempt is result
of failover. Negative values are ignored (mean regular connection creation attempt).
- Throws:
JMSException
createConnectionDelegate
public CreateConnectionResult createConnectionDelegate(java.lang.String username,
java.lang.String password,
int failedNodeID,
java.lang.String remotingSessionID,
java.lang.String clientVMID,
byte versionToUse,
ServerInvokerCallbackHandler callbackHandler)
throws JMSException
- Parameters:
failedNodeID
- - zero or positive values mean connection creation attempt is result of
failover. -1 are ignored (mean regular connection creation attempt).
- Throws:
JMSException
getClientAOPStack
public byte[] getClientAOPStack()
throws JMSException
- Specified by:
getClientAOPStack
in interface ConnectionFactoryEndpoint
- Throws:
JMSException
getID
public int getID()
getJNDIBindings
public JNDIBindings getJNDIBindings()
getServerPeer
public ServerPeer getServerPeer()
updateClusteredClients
public void updateClusteredClients(ClientConnectionFactoryDelegate[] delegates,
java.util.Map failoverMap)
throws java.lang.Exception
- Sends a cluster view update message to its associated ClusteredConnectionFactories.
Observation: It is placed here, because if we decide to lock the ServerEndpoint while we send
updates, we would need the method here to perform WriteLocks on objects.
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
Copyright © 2006 JBoss Inc. All Rights Reserved.