Interface ClusterConnection
-
- All Superinterfaces:
ActiveMQComponent,ClusterTopologyListener
- All Known Implementing Classes:
ClusterConnectionImpl
public interface ClusterConnection extends ActiveMQComponent, ClusterTopologyListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddClusterTopologyListener(ClusterTopologyListener listener)Stringdescribe()voiddisconnectRecord(String targetNodeID)voidflushExecutor()BridgeMetricsgetBridgeMetrics(String nodeId)Returns the BridgeMetrics for the bridge to the given node if existslonggetCallTimeout()TransportConfigurationgetConnector()ClusterConnectionMetricsgetMetrics()The metric for this cluster connectionSimpleStringgetName()StringgetNodeID()Map<String,String>getNodes()Only used for tests?ActiveMQServergetServer()TopologygetTopology()voidinformClusterOfBackup()booleanisNodeActive(String id)booleanisSplitBrainDetection()voidnodeAnnounced(long eventUID, String nodeID, String backupGroupName, String scaleDownGroupName, Pair<TransportConfiguration,TransportConfiguration> connectorPair, boolean backup)voidremoveClusterTopologyListener(ClusterTopologyListener listener)voidremoveRecord(String targetNodeID)voidsetSplitBrainDetection(boolean splitBrainDetection)This is needed on replication, however we don't need it on shared storage.booleanverify(String clusterUser, String clusterPassword)Verifies whether user and password match the ones configured for this ClusterConnection.-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop, isStarted, start, stop
-
Methods inherited from interface org.apache.activemq.artemis.api.core.client.ClusterTopologyListener
nodeDown, nodeUP
-
-
-
-
Method Detail
-
getName
SimpleString getName()
-
getNodeID
String getNodeID()
-
getServer
ActiveMQServer getServer()
-
nodeAnnounced
void nodeAnnounced(long eventUID, String nodeID, String backupGroupName, String scaleDownGroupName, Pair<TransportConfiguration,TransportConfiguration> connectorPair, boolean backup)
-
addClusterTopologyListener
void addClusterTopologyListener(ClusterTopologyListener listener)
-
removeClusterTopologyListener
void removeClusterTopologyListener(ClusterTopologyListener listener)
-
setSplitBrainDetection
void setSplitBrainDetection(boolean splitBrainDetection)
This is needed on replication, however we don't need it on shared storage.
-
isSplitBrainDetection
boolean isSplitBrainDetection()
-
getNodes
Map<String,String> getNodes()
Only used for tests?- Returns:
- a Map of node ID and addresses
-
getConnector
TransportConfiguration getConnector()
-
getTopology
Topology getTopology()
-
flushExecutor
void flushExecutor()
-
describe
String describe()
-
informClusterOfBackup
void informClusterOfBackup()
-
isNodeActive
boolean isNodeActive(String id)
-
verify
boolean verify(String clusterUser, String clusterPassword)
Verifies whether user and password match the ones configured for this ClusterConnection.- Parameters:
clusterUser-clusterPassword-- Returns:
trueif username and password match,falseotherwise.
-
removeRecord
void removeRecord(String targetNodeID)
-
disconnectRecord
void disconnectRecord(String targetNodeID)
-
getCallTimeout
long getCallTimeout()
-
getMetrics
ClusterConnectionMetrics getMetrics()
The metric for this cluster connection- Returns:
-
getBridgeMetrics
BridgeMetrics getBridgeMetrics(String nodeId)
Returns the BridgeMetrics for the bridge to the given node if exists- Parameters:
nodeId-- Returns:
-
-