public abstract class NodeManager extends Object implements ActiveMQComponent
Modifier and Type | Class and Description |
---|---|
static interface |
NodeManager.LockListener |
static class |
NodeManager.NodeManagerException |
Modifier and Type | Field and Description |
---|---|
protected Object |
nodeIDGuard |
protected boolean |
replicatedBackup |
Constructor and Description |
---|
NodeManager(boolean replicatedBackup) |
Modifier and Type | Method and Description |
---|---|
abstract void |
awaitLiveNode() |
abstract void |
awaitLiveStatus() |
protected void |
checkStarted() |
abstract void |
crashLiveServer() |
SimpleString |
getNodeId() |
UUID |
getUUID() |
abstract void |
interrupt() |
abstract boolean |
isAwaitingFailback() |
abstract boolean |
isBackupLive() |
boolean |
isStarted() |
protected void |
notifyLostLock() |
abstract void |
pauseLiveServer() |
abstract SimpleString |
readNodeId() |
void |
registerLockListener(NodeManager.LockListener lockListener) |
abstract void |
releaseBackup() |
void |
setNodeID(String nodeID)
Sets the nodeID.
|
protected void |
setUUID(UUID generateUUID) |
void |
start() |
abstract void |
startBackup() |
abstract ActivateCallback |
startLiveNode() |
void |
stop() |
void |
stopBackup() |
void |
unregisterLockListener(NodeManager.LockListener lockListener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncStop
protected final boolean replicatedBackup
protected final Object nodeIDGuard
public abstract void awaitLiveNode() throws NodeManager.NodeManagerException, InterruptedException
public abstract void awaitLiveStatus() throws NodeManager.NodeManagerException, InterruptedException
public abstract void startBackup() throws NodeManager.NodeManagerException, InterruptedException
public abstract ActivateCallback startLiveNode() throws NodeManager.NodeManagerException, InterruptedException
public abstract void pauseLiveServer() throws NodeManager.NodeManagerException
NodeManager.NodeManagerException
public abstract void crashLiveServer() throws NodeManager.NodeManagerException
NodeManager.NodeManagerException
public abstract void releaseBackup() throws NodeManager.NodeManagerException
NodeManager.NodeManagerException
public void start() throws Exception
start
in interface ActiveMQComponent
Exception
public boolean isStarted()
isStarted
in interface ActiveMQComponent
public SimpleString getNodeId()
public abstract SimpleString readNodeId() throws NodeManager.NodeManagerException
NodeManager.NodeManagerException
public UUID getUUID()
public void setNodeID(String nodeID)
Only used by replicating backups.
nodeID
- protected void setUUID(UUID generateUUID)
generateUUID
- public abstract boolean isAwaitingFailback() throws NodeManager.NodeManagerException
NodeManager.NodeManagerException
public abstract boolean isBackupLive() throws NodeManager.NodeManagerException
NodeManager.NodeManagerException
public abstract void interrupt()
public void stop() throws Exception
stop
in interface ActiveMQComponent
Exception
public void stopBackup() throws NodeManager.NodeManagerException
NodeManager.NodeManagerException
protected void checkStarted()
protected void notifyLostLock()
public void registerLockListener(NodeManager.LockListener lockListener)
public void unregisterLockListener(NodeManager.LockListener lockListener)
Copyright © 2021 JBoss by Red Hat. All rights reserved.