public class ClusterControl extends Object implements AutoCloseable
Constructor and Description |
---|
ClusterControl(ClientSessionFactoryInternal sessionFactory,
ActiveMQServer server) |
Modifier and Type | Method and Description |
---|---|
void |
announceReplicatingBackupToLive(boolean attemptingFailBack,
String replicationClusterName)
XXX HORNETQ-720
|
void |
announceScaleDown(SimpleString targetNodeId,
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
|
Channel |
createReplicationChannel()
create a replication channel
|
String |
getClusterPassword() |
String |
getClusterUser() |
ClientSessionFactoryInternal |
getSessionFactory()
get the session factory used to connect to the cluster
|
boolean |
requestReplicatedBackup(int backupSize,
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,
TransportConfiguration config,
TransportConfiguration backupConfig)
announce this node to the cluster.
|
Vote |
sendQuorumVote(SimpleString handler,
Vote vote) |
public ClusterControl(ClientSessionFactoryInternal sessionFactory, ActiveMQServer server)
public void authorize() throws ActiveMQException
ActiveMQException
- if authorisation wasn't successful.public void announceReplicatingBackupToLive(boolean attemptingFailBack, String replicationClusterName) throws 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.ActiveMQException
public void sendNodeAnnounce(long currentEventID, String nodeID, String backupGroupName, String scaleDownGroupName, boolean isBackup, TransportConfiguration config, 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 Channel createReplicationChannel()
public ClientSessionFactoryInternal getSessionFactory()
public void close()
close
in interface AutoCloseable
public Vote sendQuorumVote(SimpleString handler, Vote vote)
public boolean requestReplicatedBackup(int backupSize, SimpleString nodeID)
public boolean requestSharedStoreBackup(int backupSize, String journalDirectory, String bindingsDirectory, String largeMessagesDirectory, String pagingDirectory)
public void announceScaleDown(SimpleString targetNodeId, SimpleString scaledDownNodeId)
public String getClusterUser()
public String getClusterPassword()
Copyright © 2018 JBoss by Red Hat. All rights reserved.