public class ColocatedHAManager extends Object implements HAManager
| 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,
SimpleString nodeID) |
Map<String,ActiveMQServer> |
getBackupServers()
return the current backup servers
|
boolean |
isStarted() |
boolean |
requestBackup(Pair<TransportConfiguration,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 ActiveMQComponentpublic void stop()
stop in interface ActiveMQComponentpublic boolean isStarted()
isStarted in interface ActiveMQComponentpublic boolean activateBackup(int backupSize,
String journalDirectory,
String bindingsDirectory,
String largeMessagesDirectory,
String pagingDirectory,
SimpleString nodeID)
throws Exception
Exceptionpublic Map<String,ActiveMQServer> getBackupServers()
getBackupServers in interface HAManagerpublic boolean requestBackup(Pair<TransportConfiguration,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 © 2018 JBoss by Red Hat. All rights reserved.