public final class InVMNodeManager extends FileBasedNodeManager
We use the InVMNodeManager instead of FileLockNodeManager when
multiple servers are run inside the same VM and File Locks can not be shared in the
same VM (it would cause a shared lock violation).
| Modifier and Type | Class and Description |
|---|---|
static class |
InVMNodeManager.State |
NodeManager.LockListener, NodeManager.NodeManagerException| Modifier and Type | Field and Description |
|---|---|
long |
failoverPause |
InVMNodeManager.State |
state |
channel, FIRST_TIME_START, SERVER_LOCK_NAME, serverLockFilenodeIDGuard, replicatedBackup| Constructor and Description |
|---|
InVMNodeManager(boolean replicatedBackup) |
InVMNodeManager(boolean replicatedBackup,
File directory) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitLiveNode() |
void |
awaitLiveStatus() |
void |
crashLiveServer() |
void |
interrupt() |
boolean |
isAwaitingFailback() |
boolean |
isBackupLive() |
void |
pauseLiveServer() |
SimpleString |
readNodeId() |
void |
releaseBackup() |
void |
startBackup() |
ActivateCallback |
startLiveNode() |
createNodeId, newFile, setUpServerLockFile, stop, stopBackupcheckStarted, getNodeId, getUUID, isStarted, notifyLostLock, registerLockListener, setNodeID, setUUID, start, unregisterLockListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasyncStoppublic volatile InVMNodeManager.State state
public long failoverPause
public InVMNodeManager(boolean replicatedBackup)
public InVMNodeManager(boolean replicatedBackup,
File directory)
public void awaitLiveNode()
throws InterruptedException
awaitLiveNode in class NodeManagerInterruptedExceptionpublic void awaitLiveStatus()
throws InterruptedException
awaitLiveStatus in class NodeManagerInterruptedExceptionpublic void startBackup()
throws InterruptedException
startBackup in class NodeManagerInterruptedExceptionpublic ActivateCallback startLiveNode() throws InterruptedException
startLiveNode in class NodeManagerInterruptedExceptionpublic void pauseLiveServer()
pauseLiveServer in class NodeManagerpublic void crashLiveServer()
crashLiveServer in class NodeManagerpublic boolean isAwaitingFailback()
isAwaitingFailback in class NodeManagerpublic boolean isBackupLive()
isBackupLive in class NodeManagerpublic void interrupt()
interrupt in class NodeManagerpublic void releaseBackup()
releaseBackup in class NodeManagerpublic SimpleString readNodeId()
readNodeId in class NodeManagerCopyright © 2025 JBoss by Red Hat. All rights reserved.