Class JdbcNodeManager
- java.lang.Object
-
- org.apache.activemq.artemis.core.server.NodeManager
-
- org.apache.activemq.artemis.core.server.impl.jdbc.JdbcNodeManager
-
- All Implemented Interfaces:
ActiveMQComponent
public final class JdbcNodeManager extends NodeManager
JDBC implementation ofNodeManager.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.activemq.artemis.core.server.NodeManager
NodeManager.LockListener, NodeManager.NodeManagerException
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.server.NodeManager
nodeActivationSequence, nodeIDGuard, NULL_NODE_ACTIVATION_SEQUENCE, replicatedBackup
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitLiveNode()voidawaitLiveStatus()voidcrashLiveServer()protected voidfinalize()voidinterrupt()booleanisAwaitingFailback()booleanisBackupLive()protected voidnotifyLostLock()voidpauseLiveServer()SimpleStringreadNodeId()voidreleaseBackup()voidstart()voidstartBackup()ActivateCallbackstartLiveNode()voidstop()static JdbcNodeManagerwith(DatabaseStorageConfiguration configuration, ScheduledExecutorService scheduledExecutorService, ExecutorFactory executorFactory)-
Methods inherited from class org.apache.activemq.artemis.core.server.NodeManager
checkStarted, getNodeActivationSequence, getNodeId, getUUID, isStarted, readNodeActivationSequence, registerLockListener, setNodeActivationSequence, setNodeID, setUUID, stopBackup, unregisterLockListener, writeNodeActivationSequence
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Method Detail
-
with
public static JdbcNodeManager with(DatabaseStorageConfiguration configuration, ScheduledExecutorService scheduledExecutorService, ExecutorFactory executorFactory)
-
notifyLostLock
protected void notifyLostLock()
- Overrides:
notifyLostLockin classNodeManager
-
start
public void start() throws Exception- Specified by:
startin interfaceActiveMQComponent- Overrides:
startin classNodeManager- Throws:
Exception
-
stop
public void stop() throws Exception- Specified by:
stopin interfaceActiveMQComponent- Overrides:
stopin classNodeManager- Throws:
Exception
-
finalize
protected void finalize() throws Throwable
-
isAwaitingFailback
public boolean isAwaitingFailback() throws NodeManager.NodeManagerException- Specified by:
isAwaitingFailbackin classNodeManager- Throws:
NodeManager.NodeManagerException
-
isBackupLive
public boolean isBackupLive() throws NodeManager.NodeManagerException- Specified by:
isBackupLivein classNodeManager- Throws:
NodeManager.NodeManagerException
-
interrupt
public void interrupt()
- Specified by:
interruptin classNodeManager
-
releaseBackup
public void releaseBackup() throws NodeManager.NodeManagerException- Specified by:
releaseBackupin classNodeManager- Throws:
NodeManager.NodeManagerException
-
awaitLiveNode
public void awaitLiveNode() throws NodeManager.NodeManagerException, InterruptedException- Specified by:
awaitLiveNodein classNodeManager- Throws:
NodeManager.NodeManagerExceptionInterruptedException
-
startBackup
public void startBackup() throws NodeManager.NodeManagerException, InterruptedException- Specified by:
startBackupin classNodeManager- Throws:
NodeManager.NodeManagerExceptionInterruptedException
-
startLiveNode
public ActivateCallback startLiveNode() throws NodeManager.NodeManagerException, InterruptedException
- Specified by:
startLiveNodein classNodeManager- Throws:
NodeManager.NodeManagerExceptionInterruptedException
-
pauseLiveServer
public void pauseLiveServer() throws NodeManager.NodeManagerException- Specified by:
pauseLiveServerin classNodeManager- Throws:
NodeManager.NodeManagerException
-
crashLiveServer
public void crashLiveServer() throws NodeManager.NodeManagerException- Specified by:
crashLiveServerin classNodeManager- Throws:
NodeManager.NodeManagerException
-
awaitLiveStatus
public void awaitLiveStatus()
- Specified by:
awaitLiveStatusin classNodeManager
-
readNodeId
public SimpleString readNodeId()
- Specified by:
readNodeIdin classNodeManager
-
-