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
Exception
public 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
Exception
public void start() throws Exception
start
in interface HornetQComponent
Exception
public void flushExecutor()
flushExecutor
in interface ClusterConnection
public void stop() throws Exception
stop
in interface HornetQComponent
Exception
public void announceBackup()
announceBackup
in interface ClusterConnection
public void addClusterTopologyListener(ClusterTopologyListener listener)
addClusterTopologyListener
in interface ClusterConnection
public void removeClusterTopologyListener(ClusterTopologyListener listener)
removeClusterTopologyListener
in interface ClusterConnection
public Topology getTopology()
getTopology
in interface ClusterConnection
public void nodeAnnounced(long uniqueEventID, String nodeID, Pair<TransportConfiguration,TransportConfiguration> connectorPair, boolean backup)
nodeAnnounced
in interface ClusterConnection
public void onConnection(ClientSessionFactoryInternal sf)
onConnection
in interface AfterConnectInternalListener
public boolean isStarted()
isStarted
in interface HornetQComponent
public SimpleString getName()
getName
in interface ClusterConnection
public String getNodeID()
getNodeID
in interface ClusterConnection
public HornetQServer getServer()
getServer
in interface ClusterConnection
public boolean isNodeActive(String nodeId)
isNodeActive
in interface ClusterConnection
public Map<String,String> getNodes()
getNodes
in interface ClusterConnection
public void activate() throws Exception
activate
in interface ClusterConnection
Exception
public TransportConfiguration getConnector()
getConnector
in interface ClusterConnection
public void nodeDown(long eventUID, String nodeID)
nodeDown
in interface ClusterTopologyListener
public void nodeUP(long eventUID, String nodeID, Pair<TransportConfiguration,TransportConfiguration> connectorPair, boolean last)
nodeUP
in interface ClusterTopologyListener
public void informTopology()
informTopology
in interface ClusterConnection
public Map<String,MessageFlowRecord> getRecords()
public String describe()
describe
in interface ClusterConnection
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.