Class ClusterManager
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.ClusterManager
- All Implemented Interfaces:
ActiveMQComponent
A ClusterManager manages
ClusterConnections, BroadcastGroups and Bridges.
Note that ClusterConnectionBridges extend Bridges but
are controlled over through ClusterConnectionImpl. As a node is discovered a new
ClusterConnectionBridge is deployed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionClusterManager(ExecutorFactory executorFactory, ActiveMQServer server, PostOffice postOffice, ScheduledExecutorService scheduledExecutor, ManagementService managementService, Configuration configuration, NodeManager nodeManager, boolean useQuorumManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClusterChannelHandler(Channel channel, Acceptor acceptorUsed, CoreRemotingConnection remotingConnection, Activation activation) addProtocolIgnoredAddress(String ignoredAddress) voidclear()voiddeploy()booleandeployBridge(BridgeConfiguration config) describe()voiddestroyBridge(String name) voidgetClusterConnection(String name) getDefaultConnection(TransportConfiguration acceptorConfig) Return the default ClusterConnection to be used case it's not defined by the acceptorvoidinformClusterOfBackup(String name) booleanvoidremoveClusterLocator(ServerLocatorInternal serverLocator) voidstart()voidstop()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
ClusterManager
public ClusterManager(ExecutorFactory executorFactory, ActiveMQServer server, PostOffice postOffice, ScheduledExecutorService scheduledExecutor, ManagementService managementService, Configuration configuration, NodeManager nodeManager, boolean useQuorumManager)
-
-
Method Details
-
getQuorumManager
-
getClusterController
-
getHAManager
-
addClusterChannelHandler
public void addClusterChannelHandler(Channel channel, Acceptor acceptorUsed, CoreRemotingConnection remotingConnection, Activation activation) -
describe
-
getDefaultConnection
Return the default ClusterConnection to be used case it's not defined by the acceptor- Returns:
- default connection
-
toString
-
getNodeId
-
getBackupGroupName
-
getScaleDownGroupName
-
deploy
- Throws:
Exception
-
start
- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
flushExecutor
public void flushExecutor() -
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
getBridges
-
getClusterConnections
-
getBroadcastGroups
-
getClusterConnection
-
removeClusterLocator
-
deployBridge
- Throws:
Exception
-
destroyBridge
- Throws:
Exception
-
clear
public void clear() -
informClusterOfBackup
-
addProtocolIgnoredAddress
-
getProtocolIgnoredAddresses
-