Class ClusterControl
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.ClusterControl
- All Implemented Interfaces:
AutoCloseable
handles the communication between a cluster node and the cluster, either the whole cluster or a specific node in the
cluster such as a replicating node.
-
Constructor Summary
ConstructorsConstructorDescriptionClusterControl(ClientSessionFactoryInternal sessionFactory, ActiveMQServer server) -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceReplicatingBackupToPrimary(boolean attemptingFailBack, String replicationClusterName) Announce replicating backup to primary server.voidannounceScaleDown(SimpleString targetNodeId, SimpleString scaledDownNodeId) voidauthorise this cluster control so it can communicate with the cluster, it will set the cluster channel on a successful authentication.voidclose()booleanrequestReplicatedBackup(int backupSize, SimpleString nodeID) booleanrequestSharedStoreBackup(int backupSize, String journalDirectory, String bindingsDirectory, String largeMessagesDirectory, String pagingDirectory) voidsendNodeAnnounce(long currentEventID, String nodeID, String backupGroupName, String scaleDownGroupName, boolean isBackup, TransportConfiguration config, TransportConfiguration backupConfig) Announce this node to the cluster.
-
Constructor Details
-
ClusterControl
-
-
Method Details
-
getClusterChannel
-
authorize
authorise this cluster control so it can communicate with the cluster, it will set the cluster channel on a successful authentication.- Throws:
ActiveMQException- if authorisation wasn't successful.
-
announceReplicatingBackupToPrimary
public void announceReplicatingBackupToPrimary(boolean attemptingFailBack, String replicationClusterName) throws ActiveMQException Announce replicating backup to primary server.- Parameters:
attemptingFailBack- iftruethen this server wants to trigger a fail-back when up-to-date, that is it wants to take over the role of 'live' from the current 'live' server.- Throws:
ActiveMQException
-
sendNodeAnnounce
public void sendNodeAnnounce(long currentEventID, String nodeID, String backupGroupName, String scaleDownGroupName, boolean isBackup, TransportConfiguration config, TransportConfiguration backupConfig) Announce this node to the cluster.- Parameters:
currentEventID- used if multiple announcements about this node are made.nodeID- the node id if the announcing nodebackupGroupName- the backup group name.scaleDownGroupName- the scaledown group nameisBackup- are we a backupconfig- the transports configbackupConfig- the transports backup config
-
createReplicationChannel
-
getSessionFactory
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
requestReplicatedBackup
-
announceScaleDown
-
getClusterUser
-
getClusterPassword
-