Class ColocatedHAManager
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.ha.ColocatedHAManager
- All Implemented Interfaces:
ActiveMQComponent,HAManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivateBackup(int backupSize, String journalDirectory, String bindingsDirectory, String largeMessagesDirectory, String pagingDirectory, SimpleString nodeID) return the current backup serversbooleanbooleanrequestBackup(Pair<TransportConfiguration, TransportConfiguration> connectorPair, int backupSize, boolean replicated) send a request to a primary server to start a backup for usvoidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
ColocatedHAManager
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceActiveMQComponent
-
stop
public void stop()- Specified by:
stopin interfaceActiveMQComponent
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
activateBackup
public boolean activateBackup(int backupSize, String journalDirectory, String bindingsDirectory, String largeMessagesDirectory, String pagingDirectory, SimpleString nodeID) throws Exception - Throws:
Exception
-
getBackupServers
Description copied from interface:HAManagerreturn the current backup servers- Specified by:
getBackupServersin interfaceHAManager- Returns:
- the backups
-
requestBackup
public boolean requestBackup(Pair<TransportConfiguration, TransportConfiguration> connectorPair, int backupSize, boolean replicated) throws Exceptionsend a request to a primary server to start a backup for us- Parameters:
connectorPair- the connector for the node to request a backup frombackupSize- the current size of the requested nodes backups- Returns:
- true if the request wa successful
- Throws:
Exception
-