| Constructor and Description |
|---|
ColocatedHAManager(ColocatedPolicy haPolicy,
ActiveMQServer activeMQServer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateBackup(int backupSize,
String journalDirectory,
String bindingsDirectory,
String largeMessagesDirectory,
String pagingDirectory,
org.apache.activemq.artemis.api.core.SimpleString nodeID) |
Map<String,ActiveMQServer> |
getBackupServers()
return the current backup servers
|
boolean |
isStarted() |
boolean |
requestBackup(org.apache.activemq.artemis.api.core.Pair<org.apache.activemq.artemis.api.core.TransportConfiguration,org.apache.activemq.artemis.api.core.TransportConfiguration> connectorPair,
int backupSize,
boolean replicated)
send a request to a live server to start a backup for us
|
void |
start()
starts the HA manager.
|
void |
stop()
stop any backups
|
public ColocatedHAManager(ColocatedPolicy haPolicy, ActiveMQServer activeMQServer)
public void start()
start in interface org.apache.activemq.artemis.core.server.ActiveMQComponentpublic void stop()
stop in interface org.apache.activemq.artemis.core.server.ActiveMQComponentpublic boolean isStarted()
isStarted in interface org.apache.activemq.artemis.core.server.ActiveMQComponentpublic boolean activateBackup(int backupSize,
String journalDirectory,
String bindingsDirectory,
String largeMessagesDirectory,
String pagingDirectory,
org.apache.activemq.artemis.api.core.SimpleString nodeID)
throws Exception
Exceptionpublic Map<String,ActiveMQServer> getBackupServers()
getBackupServers in interface HAManagerpublic boolean requestBackup(org.apache.activemq.artemis.api.core.Pair<org.apache.activemq.artemis.api.core.TransportConfiguration,org.apache.activemq.artemis.api.core.TransportConfiguration> connectorPair,
int backupSize,
boolean replicated)
throws Exception
connectorPair - the connector for the node to request a backup frombackupSize - the current size of the requested nodes backupsreplicated - ExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.