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, unregisterLockListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasyncStopprotected 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:
IOExceptionprotected final void createNodeId()
throws IOException
IOExceptionpublic void stop()
throws Exception
stop in interface ActiveMQComponentstop in class NodeManagerExceptionpublic void stopBackup()
throws NodeManager.NodeManagerException
stopBackup in class NodeManagerNodeManager.NodeManagerExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.