public class ClusterControl extends Object implements AutoCloseable
| Constructor and Description |
|---|
ClusterControl(org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryInternal sessionFactory,
ActiveMQServer server) |
| Modifier and Type | Method and Description |
|---|---|
void |
announceReplicatingBackupToLive(boolean attemptingFailBack,
String replicationClusterName)
XXX HORNETQ-720
|
void |
announceScaleDown(org.apache.activemq.artemis.api.core.SimpleString targetNodeId,
org.apache.activemq.artemis.api.core.SimpleString scaledDownNodeId) |
void |
authorize()
authorise this cluster control so it can communicate with the cluster, it will set the cluster channel on a successful
authentication.
|
void |
close()
close this cluster control and its resources
|
org.apache.activemq.artemis.core.protocol.core.Channel |
createReplicationChannel()
create a replication channel
|
String |
getClusterPassword() |
String |
getClusterUser() |
org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryInternal |
getSessionFactory()
get the session factory used to connect to the cluster
|
boolean |
requestReplicatedBackup(int backupSize,
org.apache.activemq.artemis.api.core.SimpleString nodeID) |
boolean |
requestSharedStoreBackup(int backupSize,
String journalDirectory,
String bindingsDirectory,
String largeMessagesDirectory,
String pagingDirectory) |
void |
sendNodeAnnounce(long currentEventID,
String nodeID,
String backupGroupName,
String scaleDownGroupName,
boolean isBackup,
org.apache.activemq.artemis.api.core.TransportConfiguration config,
org.apache.activemq.artemis.api.core.TransportConfiguration backupConfig)
announce this node to the cluster.
|
Vote |
sendQuorumVote(org.apache.activemq.artemis.api.core.SimpleString handler,
Vote vote) |
public ClusterControl(org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryInternal sessionFactory,
ActiveMQServer server)
public void authorize()
throws org.apache.activemq.artemis.api.core.ActiveMQException
org.apache.activemq.artemis.api.core.ActiveMQException - if authorisation wasn't successful.public void announceReplicatingBackupToLive(boolean attemptingFailBack,
String replicationClusterName)
throws org.apache.activemq.artemis.api.core.ActiveMQException
attemptingFailBack - if true then 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.org.apache.activemq.artemis.api.core.ActiveMQExceptionpublic void sendNodeAnnounce(long currentEventID,
String nodeID,
String backupGroupName,
String scaleDownGroupName,
boolean isBackup,
org.apache.activemq.artemis.api.core.TransportConfiguration config,
org.apache.activemq.artemis.api.core.TransportConfiguration backupConfig)
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 configpublic org.apache.activemq.artemis.core.protocol.core.Channel createReplicationChannel()
public org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryInternal getSessionFactory()
public void close()
close in interface AutoCloseablepublic Vote sendQuorumVote(org.apache.activemq.artemis.api.core.SimpleString handler, Vote vote)
public boolean requestReplicatedBackup(int backupSize,
org.apache.activemq.artemis.api.core.SimpleString nodeID)
public boolean requestSharedStoreBackup(int backupSize,
String journalDirectory,
String bindingsDirectory,
String largeMessagesDirectory,
String pagingDirectory)
public void announceScaleDown(org.apache.activemq.artemis.api.core.SimpleString targetNodeId,
org.apache.activemq.artemis.api.core.SimpleString scaledDownNodeId)
public String getClusterUser()
public String getClusterPassword()
Copyright © 2023 The Apache Software Foundation. All rights reserved.