public class ClusterConnectionImpl extends Object implements ClusterConnection, AfterConnectInternalListener
| Constructor and Description |
|---|
ClusterConnectionImpl(ClusterManagerImpl manager,
DiscoveryGroupConfiguration dg,
TransportConfiguration connector,
SimpleString name,
SimpleString address,
int minLargeMessageSize,
long clientFailureCheckPeriod,
long connectionTTL,
long retryInterval,
double retryIntervalMultiplier,
long maxRetryInterval,
int reconnectAttempts,
long callTimeout,
boolean useDuplicateDetection,
boolean routeWhenNoConsumers,
int confirmationWindowSize,
ExecutorFactory executorFactory,
HornetQServer server,
PostOffice postOffice,
ManagementService managementService,
ScheduledExecutorService scheduledExecutor,
int maxHops,
UUID nodeUUID,
boolean backup,
String clusterUser,
String clusterPassword,
boolean allowDirectConnectionsOnly) |
ClusterConnectionImpl(ClusterManagerInternal manager,
TransportConfiguration[] tcConfigs,
TransportConfiguration connector,
SimpleString name,
SimpleString address,
int minLargeMessageSize,
long clientFailureCheckPeriod,
long connectionTTL,
long retryInterval,
double retryIntervalMultiplier,
long maxRetryInterval,
int reconnectAttempts,
long callTimeout,
boolean useDuplicateDetection,
boolean routeWhenNoConsumers,
int confirmationWindowSize,
ExecutorFactory executorFactory,
HornetQServer server,
PostOffice postOffice,
ManagementService managementService,
ScheduledExecutorService scheduledExecutor,
int maxHops,
UUID nodeUUID,
boolean backup,
String clusterUser,
String clusterPassword,
boolean allowDirectConnectionsOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addClusterTopologyListener(ClusterTopologyListener listener) |
void |
announceBackup() |
String |
describe() |
void |
flushExecutor() |
TransportConfiguration |
getConnector() |
SimpleString |
getName() |
String |
getNodeID() |
Map<String,String> |
getNodes() |
Map<String,MessageFlowRecord> |
getRecords() |
HornetQServer |
getServer() |
Topology |
getTopology() |
void |
informTopology() |
boolean |
isNodeActive(String nodeId) |
boolean |
isStarted() |
void |
nodeAnnounced(long uniqueEventID,
String nodeID,
Pair<TransportConfiguration,TransportConfiguration> connectorPair,
boolean backup) |
void |
nodeDown(long eventUID,
String nodeID) |
void |
nodeUP(long eventUID,
String nodeID,
Pair<TransportConfiguration,TransportConfiguration> connectorPair,
boolean last) |
void |
onConnection(ClientSessionFactoryInternal sf) |
void |
removeClusterTopologyListener(ClusterTopologyListener listener) |
void |
start() |
void |
stop() |
String |
toString() |
public ClusterConnectionImpl(ClusterManagerInternal manager, TransportConfiguration[] tcConfigs, TransportConfiguration connector, SimpleString name, SimpleString address, int minLargeMessageSize, long clientFailureCheckPeriod, long connectionTTL, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, long callTimeout, boolean useDuplicateDetection, boolean routeWhenNoConsumers, int confirmationWindowSize, ExecutorFactory executorFactory, HornetQServer server, PostOffice postOffice, ManagementService managementService, ScheduledExecutorService scheduledExecutor, int maxHops, UUID nodeUUID, boolean backup, String clusterUser, String clusterPassword, boolean allowDirectConnectionsOnly) throws Exception
Exceptionpublic ClusterConnectionImpl(ClusterManagerImpl manager, DiscoveryGroupConfiguration dg, TransportConfiguration connector, SimpleString name, SimpleString address, int minLargeMessageSize, long clientFailureCheckPeriod, long connectionTTL, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, long callTimeout, boolean useDuplicateDetection, boolean routeWhenNoConsumers, int confirmationWindowSize, ExecutorFactory executorFactory, HornetQServer server, PostOffice postOffice, ManagementService managementService, ScheduledExecutorService scheduledExecutor, int maxHops, UUID nodeUUID, boolean backup, String clusterUser, String clusterPassword, boolean allowDirectConnectionsOnly) throws Exception
Exceptionpublic void start()
throws Exception
start in interface HornetQComponentExceptionpublic void flushExecutor()
flushExecutor in interface ClusterConnectionpublic void stop()
throws Exception
stop in interface HornetQComponentExceptionpublic void announceBackup()
announceBackup in interface ClusterConnectionpublic void addClusterTopologyListener(ClusterTopologyListener listener)
addClusterTopologyListener in interface ClusterConnectionpublic void removeClusterTopologyListener(ClusterTopologyListener listener)
removeClusterTopologyListener in interface ClusterConnectionpublic Topology getTopology()
getTopology in interface ClusterConnectionpublic void nodeAnnounced(long uniqueEventID,
String nodeID,
Pair<TransportConfiguration,TransportConfiguration> connectorPair,
boolean backup)
nodeAnnounced in interface ClusterConnectionpublic void onConnection(ClientSessionFactoryInternal sf)
onConnection in interface AfterConnectInternalListenerpublic boolean isStarted()
isStarted in interface HornetQComponentpublic SimpleString getName()
getName in interface ClusterConnectionpublic String getNodeID()
getNodeID in interface ClusterConnectionpublic HornetQServer getServer()
getServer in interface ClusterConnectionpublic boolean isNodeActive(String nodeId)
isNodeActive in interface ClusterConnectionpublic Map<String,String> getNodes()
getNodes in interface ClusterConnectionpublic void activate()
throws Exception
activate in interface ClusterConnectionExceptionpublic TransportConfiguration getConnector()
getConnector in interface ClusterConnectionpublic void nodeDown(long eventUID,
String nodeID)
nodeDown in interface ClusterTopologyListenerpublic void nodeUP(long eventUID,
String nodeID,
Pair<TransportConfiguration,TransportConfiguration> connectorPair,
boolean last)
nodeUP in interface ClusterTopologyListenerpublic void informTopology()
informTopology in interface ClusterConnectionpublic Map<String,MessageFlowRecord> getRecords()
public String describe()
describe in interface ClusterConnectionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.