Class ClusterManager
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.cluster.ClusterManager
-
- All Implemented Interfaces:
ActiveMQComponent
public class ClusterManager extends Object implements ActiveMQComponent
A ClusterManager managesClusterConnections,BroadcastGroups andBridges.Note that
ClusterConnectionBridges extend Bridges but are controlled over throughClusterConnectionImpl. As a node is discovered a newClusterConnectionBridgeis deployed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterManager.IncomingInterceptorLookingForExceptionMessage
-
Constructor Summary
Constructors Constructor Description ClusterManager(ExecutorFactory executorFactory, ActiveMQServer server, PostOffice postOffice, ScheduledExecutorService scheduledExecutor, ManagementService managementService, Configuration configuration, NodeManager nodeManager, boolean useQuorumManager)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
ClusterManager
public ClusterManager(ExecutorFactory executorFactory, ActiveMQServer server, PostOffice postOffice, ScheduledExecutorService scheduledExecutor, ManagementService managementService, Configuration configuration, NodeManager nodeManager, boolean useQuorumManager)
-
-
Method Detail
-
getQuorumManager
public QuorumManager getQuorumManager()
-
getClusterController
public ClusterController getClusterController()
-
getHAManager
public HAManager getHAManager()
-
addClusterChannelHandler
public void addClusterChannelHandler(Channel channel, Acceptor acceptorUsed, CoreRemotingConnection remotingConnection, Activation activation)
-
describe
public String describe()
-
getDefaultConnection
public ClusterConnection getDefaultConnection(TransportConfiguration acceptorConfig)
Return the default ClusterConnection to be used case it's not defined by the acceptor- Returns:
- default connection
-
getNodeId
public String getNodeId()
-
getBackupGroupName
public String getBackupGroupName()
-
getScaleDownGroupName
public String getScaleDownGroupName()
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
flushExecutor
public void flushExecutor()
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceActiveMQComponent
-
getClusterConnections
public Set<ClusterConnection> getClusterConnections()
-
getBroadcastGroups
public Set<BroadcastGroup> getBroadcastGroups()
-
getClusterConnection
public ClusterConnection getClusterConnection(String name)
-
removeClusterLocator
public void removeClusterLocator(ServerLocatorInternal serverLocator)
-
deployBridge
public boolean deployBridge(BridgeConfiguration config) throws Exception
- Throws:
Exception
-
clear
public void clear()
-
informClusterOfBackup
public void informClusterOfBackup(String name)
-
addProtocolIgnoredAddress
public ClusterManager addProtocolIgnoredAddress(String ignoredAddress)
-
getProtocolIgnoredAddresses
public Collection<String> getProtocolIgnoredAddresses()
-
-