public abstract class FileBasedNodeManager extends NodeManager
NodeManager.LockListener, NodeManager.NodeManagerException
Modifier and Type | Field and Description |
---|---|
protected FileChannel |
channel |
protected static byte |
FIRST_TIME_START |
static String |
SERVER_LOCK_NAME |
nodeIDGuard, replicatedBackup
Constructor and Description |
---|
FileBasedNodeManager(boolean replicatedBackup,
File directory) |
Modifier and Type | Method and Description |
---|---|
protected void |
createNodeId() |
protected File |
newFile(String fileName) |
protected void |
setUpServerLockFile()
Ensures existence of persistent information about the server's nodeID.
|
void |
stop() |
void |
stopBackup() |
awaitLiveNode, awaitLiveStatus, checkStarted, crashLiveServer, getNodeId, getUUID, interrupt, isAwaitingFailback, isBackupLive, isStarted, notifyLostLock, pauseLiveServer, readNodeId, registerLockListener, releaseBackup, setNodeID, setUUID, start, startBackup, startLiveNode, unregisterLockListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncStop
protected static final byte FIRST_TIME_START
public static final String SERVER_LOCK_NAME
protected FileChannel channel
public FileBasedNodeManager(boolean replicatedBackup, File directory)
protected void setUpServerLockFile() throws IOException
Roughly the different use cases are:
IOException
protected final void createNodeId() throws IOException
IOException
public void stop() throws Exception
stop
in interface ActiveMQComponent
stop
in class NodeManager
Exception
public void stopBackup() throws NodeManager.NodeManagerException
stopBackup
in class NodeManager
NodeManager.NodeManagerException
Copyright © 2021 JBoss by Red Hat. All rights reserved.