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 ActiveMQComponent
public void stop()
stop
in interface ActiveMQComponent
public boolean isStarted()
isStarted
in interface ActiveMQComponent
public boolean activateBackup(int backupSize, String journalDirectory, String bindingsDirectory, String largeMessagesDirectory, String pagingDirectory, SimpleString nodeID) throws Exception
Exception
public Map<String,ActiveMQServer> getBackupServers()
getBackupServers
in interface HAManager
public 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
- Exception
Copyright © 2019 JBoss by Red Hat. All rights reserved.