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
nodeIDGuard, 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, stopBackup
checkStarted, getNodeId, getUUID, isStarted, notifyLostLock, registerLockListener, setNodeID, setUUID, start, unregisterLockListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncStop
public 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 NodeManager
InterruptedException
public void awaitLiveStatus() throws InterruptedException
awaitLiveStatus
in class NodeManager
InterruptedException
public void startBackup() throws InterruptedException
startBackup
in class NodeManager
InterruptedException
public ActivateCallback startLiveNode() throws InterruptedException
startLiveNode
in class NodeManager
InterruptedException
public void pauseLiveServer()
pauseLiveServer
in class NodeManager
public void crashLiveServer()
crashLiveServer
in class NodeManager
public boolean isAwaitingFailback()
isAwaitingFailback
in class NodeManager
public boolean isBackupLive()
isBackupLive
in class NodeManager
public void interrupt()
interrupt
in class NodeManager
public void releaseBackup()
releaseBackup
in class NodeManager
public SimpleString readNodeId()
readNodeId
in class NodeManager
Copyright © 2021 JBoss by Red Hat. All rights reserved.