public class ServerLocatorImpl extends Object implements ServerLocatorInternal, DiscoveryListener, Serializable
| Modifier and Type | Field and Description |
|---|---|
static Runnable |
finalizeCallback |
| Constructor and Description |
|---|
ServerLocatorImpl(boolean useHA,
DiscoveryGroupConfiguration groupConfiguration)
Create a ServerLocatorImpl using UDP discovery to lookup cluster
|
ServerLocatorImpl(boolean useHA,
TransportConfiguration... transportConfigs)
Create a ServerLocatorImpl using a static list of live servers
|
ServerLocatorImpl(Topology topology,
boolean useHA,
DiscoveryGroupConfiguration groupConfiguration)
Create a ServerLocatorImpl using UDP discovery to lookup cluster
|
ServerLocatorImpl(Topology topology,
boolean useHA,
TransportConfiguration... transportConfigs)
Create a ServerLocatorImpl using a static list of live servers
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClusterTopologyListener(ClusterTopologyListener listener) |
void |
addInterceptor(Interceptor interceptor)
Adds an interceptor which will be executed after packets are received from the server.
|
void |
cleanup() |
static void |
clearThreadPools() |
void |
close()
Closes this factory and release all its resources
|
ClientSessionFactoryInternal |
connect() |
void |
connectorsChanged() |
ClientSessionFactory |
createSessionFactory()
Create a ClientSessionFactory using whatever load balancing policy is in force
|
ClientSessionFactory |
createSessionFactory(String nodeID)
Create a ClientSessionFactory to a specific server.
|
ClientSessionFactory |
createSessionFactory(TransportConfiguration transportConfiguration)
Create a ClientSessionFactory to a specific server.
|
void |
disableFinalizeCheck()
This method will disable any checks when a GarbageCollection happens
leaving connections open.
|
protected void |
doClose(boolean sendClose) |
void |
factoryClosed(ClientSessionFactory factory) |
protected void |
finalize() |
int |
getAckBatchSize()
Returns the acknowledgments batch size.
|
AfterConnectInternalListener |
getAfterConnectInternalListener() |
long |
getCallTimeout()
Returns the blocking calls timeout.
|
long |
getClientFailureCheckPeriod()
Returns the period used to check if a client has failed to receive pings from the server.
|
TransportConfiguration |
getClusterTransportConfiguration() |
int |
getConfirmationWindowSize()
Returns the size for the confirmation window of clients using this factory.
|
String |
getConnectionLoadBalancingPolicyClassName()
Returns the class name of the connection load balancing policy.
|
long |
getConnectionTTL()
Returns the connection time-to-live.
|
int |
getConsumerMaxRate()
Returns the maximum rate of message consumption for consumers created through this factory.
|
int |
getConsumerWindowSize()
Returns the window size for flow control of the consumers created through this factory.
|
DiscoveryGroupConfiguration |
getDiscoveryGroupConfiguration()
The discovery group configuration
|
Executor |
getExecutor() |
static ScheduledExecutorService |
getGlobalScheduledThreadPool() |
String |
getGroupID()
Returns the group ID that will be eventually set on each message for the property
Message.HDR_GROUP_ID. |
String |
getIdentity() |
int |
getInitialConnectAttempts() |
int |
getInitialMessagePacketSize()
Returns the initial size of messages created through this factory.
|
long |
getMaxRetryInterval()
Returns the maximum retry interval (in the case a retry interval multiplier has been specified).
|
int |
getMinLargeMessageSize()
Returns the large message size threshold.
|
String |
getNodeID() |
int |
getProducerMaxRate()
Returns the maximum rate of message production for producers created through this factory.
|
int |
getProducerWindowSize()
Returns the window size for flow control of the producers created through this factory.
|
int |
getReconnectAttempts()
Returns the maximum number of attempts to retry connection in case of failure.
|
long |
getRetryInterval()
Returns the time to retry connections created by this factory after failure.
|
double |
getRetryIntervalMultiplier()
Returns the multiplier to apply to successive retry intervals.
|
int |
getScheduledThreadPoolMaxSize()
Returns the maximum size of the scheduled thread pool.
|
TransportConfiguration[] |
getStaticTransportConfigurations()
Returns an array of TransportConfigurations representing the static list of live servers used when
creating this object
|
int |
getThreadPoolMaxSize()
Returns the maximum size of the thread pool.
|
Topology |
getTopology() |
boolean |
isAutoGroup()
Returns whether producers created through this factory will automatically
assign a group ID to the messages they sent.
|
boolean |
isBackup() |
boolean |
isBlockOnAcknowledge()
Returns whether consumers created through this factory will block while
sending message acknowledgments or do it asynchronously.
|
boolean |
isBlockOnDurableSend()
Returns whether producers created through this factory will block while sending durable messages or do it asynchronously.
|
boolean |
isBlockOnNonDurableSend()
Returns whether producers created through this factory will block while sending non-durable messages or do it asynchronously.
|
boolean |
isCacheLargeMessagesClient()
When
true, consumers created through this factory will create temporary files to cache large messages. |
boolean |
isClosed()
Returns true if close was already called
|
boolean |
isClusterConnection() |
boolean |
isCompressLargeMessage() |
boolean |
isFailoverOnInitialConnection()
Returns true if the client will automatically attempt to connect to the backup server if the initial
connection to the live server fails
Default value is
HornetQClient.DEFAULT_FAILOVER_ON_INITIAL_CONNECTION. |
boolean |
isHA() |
boolean |
isPreAcknowledge()
Returns whether messages will pre-acknowledged on the server before they are sent to the consumers or not.
|
boolean |
isUseGlobalPools()
Returns whether this factory will use global thread pools (shared among all the factories in the same JVM)
or its own pools.
|
void |
notifyNodeDown(long eventTime,
String nodeID)
This is directly called when the connection to the node is gone,
or when the node sends a disconnection.
|
void |
notifyNodeUp(long uniqueEventID,
String nodeID,
Pair<TransportConfiguration,TransportConfiguration> connectorPair,
boolean last) |
void |
removeClusterTopologyListener(ClusterTopologyListener listener) |
boolean |
removeInterceptor(Interceptor interceptor)
Removes an interceptor.
|
void |
setAckBatchSize(int ackBatchSize)
Sets the acknowledgments batch size.
|
void |
setAfterConnectionInternalListener(AfterConnectInternalListener listener) |
void |
setAutoGroup(boolean autoGroup)
Sets whether producers created through this factory will automatically
assign a group ID to the messages they sent.
|
void |
setBackup(boolean backup) |
void |
setBlockOnAcknowledge(boolean blockOnAcknowledge)
Sets whether consumers created through this factory will block while
sending message acknowledgments or do it asynchronously.
|
void |
setBlockOnDurableSend(boolean blockOnDurableSend)
Sets whether producers created through this factory will block while sending durable messages or do it asynchronously.
|
void |
setBlockOnNonDurableSend(boolean blockOnNonDurableSend)
Sets whether producers created through this factory will block while sending non-durable messages or do it asynchronously.
|
void |
setCacheLargeMessagesClient(boolean cached)
Sets whether large messages received by consumers created through this factory will be cached in temporary files or not.
|
void |
setCallTimeout(long callTimeout)
Sets the blocking call timeout.
|
void |
setClientFailureCheckPeriod(long clientFailureCheckPeriod)
Sets the period (in milliseconds) used to check if a client has failed to receive pings from the server.
|
void |
setClusterConnection(boolean clusterConnection) |
void |
setClusterTransportConfiguration(TransportConfiguration tc) |
void |
setCompressLargeMessage(boolean compress) |
void |
setConfirmationWindowSize(int confirmationWindowSize)
Sets the size for the confirmation window buffer of clients using this factory.
|
void |
setConnectionLoadBalancingPolicyClassName(String loadBalancingPolicyClassName)
Sets the class name of the connection load balancing policy.
|
void |
setConnectionTTL(long connectionTTL)
Sets this factory's connections time-to-live.
|
void |
setConsumerMaxRate(int consumerMaxRate)
Sets the maximum rate of message consumption for consumers created through this factory.
|
void |
setConsumerWindowSize(int consumerWindowSize)
Sets the window size for flow control of the consumers created through this factory.
|
void |
setFailoverOnInitialConnection(boolean failover)
Sets the value for FailoverOnInitialReconnection
|
void |
setGroupID(String groupID)
Sets the group ID that will be set on each message sent through this factory.
|
void |
setIdentity(String identity)
Used to better identify Cluster Connection Locators on logs.
|
void |
setInitialConnectAttempts(int initialConnectAttempts) |
void |
setInitialMessagePacketSize(int size)
Sets the initial size of messages created through this factory.
|
void |
setMaxRetryInterval(long retryInterval)
Sets the maximum retry interval.
|
void |
setMinLargeMessageSize(int minLargeMessageSize)
Sets the large message size threshold.
|
void |
setNodeID(String nodeID) |
void |
setPreAcknowledge(boolean preAcknowledge)
Sets to
true to pre-acknowledge consumed messages on the
server before they are sent to consumers, else set to false
to let clients acknowledge the message they consume. |
void |
setProducerMaxRate(int producerMaxRate)
Sets the maximum rate of message production for producers created through this factory.
|
void |
setProducerWindowSize(int producerWindowSize)
Returns the window size for flow control of the producers created through this factory.
|
void |
setReconnectAttempts(int reconnectAttempts)
Sets the maximum number of attempts to retry connection in case of failure.
|
void |
setRetryInterval(long retryInterval)
Sets the time to retry connections created by this factory after failure.
|
void |
setRetryIntervalMultiplier(double retryIntervalMultiplier)
Sets the multiplier to apply to successive retry intervals.
|
void |
setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize)
Sets the maximum size of the scheduled thread pool.
|
void |
setThreadPoolMaxSize(int threadPoolMaxSize)
Sets the maximum size of the thread pool.
|
void |
setUseGlobalPools(boolean useGlobalPools)
Sets whether this factory will use global thread pools (shared among all the factories in the same JVM)
or its own pools.
|
void |
start(Executor executor) |
String |
toString() |
public static Runnable finalizeCallback
public ServerLocatorImpl(boolean useHA,
DiscoveryGroupConfiguration groupConfiguration)
discoveryAddress - discoveryPort - public ServerLocatorImpl(boolean useHA,
TransportConfiguration... transportConfigs)
transportConfigs - public ServerLocatorImpl(Topology topology, boolean useHA, DiscoveryGroupConfiguration groupConfiguration)
discoveryAddress - discoveryPort - public ServerLocatorImpl(Topology topology, boolean useHA, TransportConfiguration... transportConfigs)
transportConfigs - public static void clearThreadPools()
public static ScheduledExecutorService getGlobalScheduledThreadPool()
public void start(Executor executor) throws Exception
start in interface ServerLocatorInternalExceptionpublic Executor getExecutor()
getExecutor in interface ServerLocatorInternalpublic void disableFinalizeCheck()
ServerLocatordisableFinalizeCheck in interface ServerLocatorpublic ClientSessionFactoryInternal connect() throws Exception
connect in interface ServerLocatorInternalExceptionpublic void setAfterConnectionInternalListener(AfterConnectInternalListener listener)
setAfterConnectionInternalListener in interface ServerLocatorInternalpublic AfterConnectInternalListener getAfterConnectInternalListener()
getAfterConnectInternalListener in interface ServerLocatorInternalpublic ClientSessionFactory createSessionFactory(String nodeID) throws Exception
ServerLocatorcreateSessionFactory in interface ServerLocatorException - if a failure happened in creating the ClientSessionFactory or the ServerLocator does not know about the passed in transportConfigurationpublic ClientSessionFactory createSessionFactory(TransportConfiguration transportConfiguration) throws Exception
ServerLocatorcreateSessionFactory in interface ServerLocatorException - if a failure happened in creating the ClientSessionFactory or the ServerLocator does not know about the passed in transportConfigurationpublic ClientSessionFactory createSessionFactory() throws Exception
ServerLocatorcreateSessionFactory in interface ServerLocatorExceptionpublic boolean isHA()
isHA in interface ServerLocatorpublic boolean isCacheLargeMessagesClient()
ServerLocatortrue, consumers created through this factory will create temporary files to cache large messages.
There is 1 temporary file created for each large message.
Default value is HornetQClient.DEFAULT_CACHE_LARGE_MESSAGE_CLIENT.isCacheLargeMessagesClient in interface ServerLocatortrue if consumers created through this factory will cache large messages in temporary files, false elsepublic void setCacheLargeMessagesClient(boolean cached)
ServerLocatorsetCacheLargeMessagesClient in interface ServerLocatorcached - true to cache large messages in temporary files, false elsepublic long getClientFailureCheckPeriod()
ServerLocatorHornetQClient.DEFAULT_CLIENT_FAILURE_CHECK_PERIOD.getClientFailureCheckPeriod in interface ServerLocatorpublic void setClientFailureCheckPeriod(long clientFailureCheckPeriod)
ServerLocatorsetClientFailureCheckPeriod in interface ServerLocatorclientFailureCheckPeriod - the period to check failurepublic long getConnectionTTL()
ServerLocatorHornetQClient.DEFAULT_CONNECTION_TTL.getConnectionTTL in interface ServerLocatorpublic void setConnectionTTL(long connectionTTL)
ServerLocatorsetConnectionTTL in interface ServerLocatorconnectionTTL - period in millisecondspublic long getCallTimeout()
ServerLocatorHornetQException with the code HornetQException.CONNECTION_TIMEDOUT.
Value is in milliseconds, default value is HornetQClient.DEFAULT_CALL_TIMEOUT.getCallTimeout in interface ServerLocatorpublic void setCallTimeout(long callTimeout)
ServerLocatorsetCallTimeout in interface ServerLocatorcallTimeout - blocking call timeout in millisecondspublic int getMinLargeMessageSize()
ServerLocatorHornetQClient.DEFAULT_MIN_LARGE_MESSAGE_SIZE.getMinLargeMessageSize in interface ServerLocatorpublic void setMinLargeMessageSize(int minLargeMessageSize)
ServerLocatorsetMinLargeMessageSize in interface ServerLocatorminLargeMessageSize - large message size threshold in bytespublic int getConsumerWindowSize()
ServerLocatorHornetQClient.DEFAULT_CONSUMER_WINDOW_SIZE.getConsumerWindowSize in interface ServerLocatorpublic void setConsumerWindowSize(int consumerWindowSize)
ServerLocatorsetConsumerWindowSize in interface ServerLocatorconsumerWindowSize - window size (in bytes) used for consumer flow controlpublic int getConsumerMaxRate()
ServerLocatorHornetQClient.DEFAULT_CONSUMER_MAX_RATE.getConsumerMaxRate in interface ServerLocatorpublic void setConsumerMaxRate(int consumerMaxRate)
ServerLocatorsetConsumerMaxRate in interface ServerLocatorconsumerMaxRate - maximum rate of message consumption (in messages per seconds)public int getConfirmationWindowSize()
ServerLocatorHornetQClient.DEFAULT_CONFIRMATION_WINDOW_SIZE.getConfirmationWindowSize in interface ServerLocatorpublic void setConfirmationWindowSize(int confirmationWindowSize)
ServerLocatorsetConfirmationWindowSize in interface ServerLocatorconfirmationWindowSize - size of the confirmation window (in bytes)public int getProducerWindowSize()
ServerLocatorHornetQClient.DEFAULT_PRODUCER_WINDOW_SIZE.getProducerWindowSize in interface ServerLocatorpublic void setProducerWindowSize(int producerWindowSize)
ServerLocatorsetProducerWindowSize in interface ServerLocatorproducerWindowSize - window size (in bytest) for flow control of the producers created through this factory.public int getProducerMaxRate()
ServerLocatorHornetQClient.DEFAULT_PRODUCER_MAX_RATE.getProducerMaxRate in interface ServerLocatorpublic void setProducerMaxRate(int producerMaxRate)
ServerLocatorsetProducerMaxRate in interface ServerLocatorproducerMaxRate - maximum rate of message production (in messages per seconds)public boolean isBlockOnAcknowledge()
ServerLocatorHornetQClient.DEFAULT_BLOCK_ON_ACKNOWLEDGE.isBlockOnAcknowledge in interface ServerLocatorpublic void setBlockOnAcknowledge(boolean blockOnAcknowledge)
ServerLocatorsetBlockOnAcknowledge in interface ServerLocatorblockOnAcknowledge - true to block when sending message
acknowledgments or false to send them
asynchronouslypublic boolean isBlockOnDurableSend()
ServerLocatorHornetQClient.DEFAULT_BLOCK_ON_DURABLE_SEND.isBlockOnDurableSend in interface ServerLocatorpublic void setBlockOnDurableSend(boolean blockOnDurableSend)
ServerLocatorsetBlockOnDurableSend in interface ServerLocatorblockOnDurableSend - true to block when sending durable messages or false to send them asynchronouslypublic boolean isBlockOnNonDurableSend()
ServerLocatorHornetQClient.DEFAULT_BLOCK_ON_NON_DURABLE_SEND.isBlockOnNonDurableSend in interface ServerLocatorpublic void setBlockOnNonDurableSend(boolean blockOnNonDurableSend)
ServerLocatorsetBlockOnNonDurableSend in interface ServerLocatorblockOnNonDurableSend - true to block when sending non-durable messages or false to send them asynchronouslypublic boolean isAutoGroup()
ServerLocatortrue, a random unique group ID is created and set on each message for the property
Message.HDR_GROUP_ID.
Default value is HornetQClient.DEFAULT_AUTO_GROUP.isAutoGroup in interface ServerLocatorpublic void setAutoGroup(boolean autoGroup)
ServerLocatorsetAutoGroup in interface ServerLocatorautoGroup - true to automatically assign a group ID to each messages sent through this factory, false elsepublic boolean isPreAcknowledge()
ServerLocatorHornetQClient.DEFAULT_PRE_ACKNOWLEDGEisPreAcknowledge in interface ServerLocatorpublic void setPreAcknowledge(boolean preAcknowledge)
ServerLocatortrue to pre-acknowledge consumed messages on the
server before they are sent to consumers, else set to false
to let clients acknowledge the message they consume.setPreAcknowledge in interface ServerLocatorpreAcknowledge - true to enable pre-acknowledgment,
false elsepublic int getAckBatchSize()
ServerLocatorHornetQClient.DEFAULT_ACK_BATCH_SIZE.getAckBatchSize in interface ServerLocatorpublic void setAckBatchSize(int ackBatchSize)
ServerLocatorsetAckBatchSize in interface ServerLocatorackBatchSize - acknowledgments batch sizepublic boolean isUseGlobalPools()
ServerLocatorHornetQClient.DEFAULT_USE_GLOBAL_POOLS.isUseGlobalPools in interface ServerLocatortrue if this factory uses global thread pools, false elsepublic void setUseGlobalPools(boolean useGlobalPools)
ServerLocatorsetUseGlobalPools in interface ServerLocatoruseGlobalPools - true to let this factory uses global thread pools, false elsepublic int getScheduledThreadPoolMaxSize()
ServerLocatorHornetQClient.DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE.getScheduledThreadPoolMaxSize in interface ServerLocatorpublic void setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize)
ServerLocatorsetScheduledThreadPoolMaxSize in interface ServerLocatorscheduledThreadPoolMaxSize - maximum size of the scheduled thread pool.public int getThreadPoolMaxSize()
ServerLocatorHornetQClient.DEFAULT_THREAD_POOL_MAX_SIZE.getThreadPoolMaxSize in interface ServerLocatorpublic void setThreadPoolMaxSize(int threadPoolMaxSize)
ServerLocatorsetThreadPoolMaxSize in interface ServerLocatorthreadPoolMaxSize - maximum size of the thread pool.public long getRetryInterval()
ServerLocatorHornetQClient.DEFAULT_RETRY_INTERVAL.getRetryInterval in interface ServerLocatorpublic void setRetryInterval(long retryInterval)
ServerLocatorsetRetryInterval in interface ServerLocatorretryInterval - time (in milliseconds) to retry connections created by this factory after failurepublic long getMaxRetryInterval()
ServerLocatorHornetQClient.DEFAULT_MAX_RETRY_INTERVAL.getMaxRetryInterval in interface ServerLocatorpublic void setMaxRetryInterval(long retryInterval)
ServerLocatorsetMaxRetryInterval in interface ServerLocatorretryInterval - maximum retry interval to apply in the case a retry interval multiplier has been specifiedpublic double getRetryIntervalMultiplier()
ServerLocatorHornetQClient.DEFAULT_RETRY_INTERVAL_MULTIPLIER.getRetryIntervalMultiplier in interface ServerLocatorpublic void setRetryIntervalMultiplier(double retryIntervalMultiplier)
ServerLocatorsetRetryIntervalMultiplier in interface ServerLocatorretryIntervalMultiplier - multiplier to apply to successive retry intervalspublic int getReconnectAttempts()
ServerLocatorHornetQClient.DEFAULT_RECONNECT_ATTEMPTS.getReconnectAttempts in interface ServerLocatorpublic void setReconnectAttempts(int reconnectAttempts)
ServerLocatorsetReconnectAttempts in interface ServerLocatorreconnectAttempts - maximum number of attempts to retry connection in case of failurepublic void setInitialConnectAttempts(int initialConnectAttempts)
setInitialConnectAttempts in interface ServerLocatorpublic int getInitialConnectAttempts()
getInitialConnectAttempts in interface ServerLocatorpublic boolean isFailoverOnInitialConnection()
ServerLocatorHornetQClient.DEFAULT_FAILOVER_ON_INITIAL_CONNECTION.isFailoverOnInitialConnection in interface ServerLocatorpublic void setFailoverOnInitialConnection(boolean failover)
ServerLocatorsetFailoverOnInitialConnection in interface ServerLocatorpublic String getConnectionLoadBalancingPolicyClassName()
ServerLocatorgetConnectionLoadBalancingPolicyClassName in interface ServerLocatorpublic void setConnectionLoadBalancingPolicyClassName(String loadBalancingPolicyClassName)
ServerLocatorConnectionLoadBalancingPolicy.setConnectionLoadBalancingPolicyClassName in interface ServerLocatorloadBalancingPolicyClassName - class name of the connection load balancing policypublic TransportConfiguration[] getStaticTransportConfigurations()
ServerLocatorgetStaticTransportConfigurations in interface ServerLocatorpublic DiscoveryGroupConfiguration getDiscoveryGroupConfiguration()
ServerLocatorgetDiscoveryGroupConfiguration in interface ServerLocatorpublic void addInterceptor(Interceptor interceptor)
ServerLocatoraddInterceptor in interface ServerLocatorinterceptor - an Interceptorpublic boolean removeInterceptor(Interceptor interceptor)
ServerLocatorremoveInterceptor in interface ServerLocatorinterceptor - interceptor to removetrue if the interceptor is removed from this factory, false elsepublic int getInitialMessagePacketSize()
ServerLocatorHornetQClient.DEFAULT_INITIAL_MESSAGE_PACKET_SIZE.getInitialMessagePacketSize in interface ServerLocatorpublic void setInitialMessagePacketSize(int size)
ServerLocatorsetInitialMessagePacketSize in interface ServerLocatorsize - initial size of messages created through this factory.public void setGroupID(String groupID)
ServerLocatorsetGroupID in interface ServerLocatorgroupID - the group ID to usepublic String getGroupID()
ServerLocatorMessage.HDR_GROUP_ID.
Default value is is null and no group ID will be set on the messages.getGroupID in interface ServerLocatorpublic boolean isCompressLargeMessage()
isCompressLargeMessage in interface ServerLocatorpublic void setCompressLargeMessage(boolean compress)
setCompressLargeMessage in interface ServerLocatorpublic String getIdentity()
getIdentity in interface ServerLocatorInternalpublic void setIdentity(String identity)
ServerLocatorInternalsetIdentity in interface ServerLocatorInternalpublic void setNodeID(String nodeID)
setNodeID in interface ServerLocatorInternalpublic String getNodeID()
getNodeID in interface ServerLocatorInternalpublic void setClusterConnection(boolean clusterConnection)
setClusterConnection in interface ServerLocatorInternalpublic boolean isClusterConnection()
isClusterConnection in interface ServerLocatorInternalpublic TransportConfiguration getClusterTransportConfiguration()
getClusterTransportConfiguration in interface ServerLocatorInternalpublic void setClusterTransportConfiguration(TransportConfiguration tc)
setClusterTransportConfiguration in interface ServerLocatorInternalpublic boolean isBackup()
isBackup in interface ServerLocatorInternalpublic void setBackup(boolean backup)
setBackup in interface ServerLocatorInternalprotected void finalize()
throws Throwable
public void cleanup()
cleanup in interface ServerLocatorInternalpublic void close()
ServerLocatorclose in interface ServerLocatorprotected void doClose(boolean sendClose)
public void notifyNodeDown(long eventTime,
String nodeID)
notifyNodeDown in interface ServerLocatorInternaleventTime - 0 means get the previous ID +1public void notifyNodeUp(long uniqueEventID,
String nodeID,
Pair<TransportConfiguration,TransportConfiguration> connectorPair,
boolean last)
notifyNodeUp in interface ServerLocatorInternalpublic void connectorsChanged()
connectorsChanged in interface DiscoveryListenerpublic void factoryClosed(ClientSessionFactory factory)
factoryClosed in interface ServerLocatorInternalpublic Topology getTopology()
getTopology in interface ServerLocatorInternalpublic void addClusterTopologyListener(ClusterTopologyListener listener)
addClusterTopologyListener in interface ServerLocatorpublic void removeClusterTopologyListener(ClusterTopologyListener listener)
removeClusterTopologyListener in interface ServerLocatorpublic boolean isClosed()
ServerLocatorisClosed in interface ServerLocatorCopyright © 2012 JBoss by Red Hat. All Rights Reserved.