public final class InVMNodeManager extends NodeManager
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 |
| Modifier and Type | Field and Description |
|---|---|
long |
failoverPause |
InVMNodeManager.State |
state |
channel, FIRST_TIME_START, 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, getNodeId, getUUID, isStarted, newFile, setNodeID, setUpServerLockFile, setUUID, start, stop, stopBackuppublic InVMNodeManager.State state
public long failoverPause
public InVMNodeManager(boolean replicatedBackup)
public InVMNodeManager(boolean replicatedBackup,
File directory)
public void awaitLiveNode()
throws Exception
awaitLiveNode in class NodeManagerExceptionpublic void awaitLiveStatus()
throws Exception
awaitLiveStatus in class NodeManagerExceptionpublic void startBackup()
throws Exception
startBackup in class NodeManagerExceptionpublic ActivateCallback startLiveNode() throws Exception
startLiveNode in class NodeManagerExceptionpublic void pauseLiveServer()
throws Exception
pauseLiveServer in class NodeManagerExceptionpublic void crashLiveServer()
throws Exception
crashLiveServer in class NodeManagerExceptionpublic boolean isAwaitingFailback()
throws Exception
isAwaitingFailback in class NodeManagerExceptionpublic boolean isBackupLive()
throws Exception
isBackupLive in class NodeManagerExceptionpublic void interrupt()
interrupt in class NodeManagerpublic void releaseBackup()
releaseBackup in class NodeManagerpublic SimpleString readNodeId() throws ActiveMQIllegalStateException, IOException
readNodeId in class NodeManagerActiveMQIllegalStateExceptionIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.