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, stopBackup
public InVMNodeManager.State state
public long failoverPause
public InVMNodeManager(boolean replicatedBackup)
public InVMNodeManager(boolean replicatedBackup, File directory)
public void awaitLiveNode() throws Exception
awaitLiveNode
in class NodeManager
Exception
public void awaitLiveStatus() throws Exception
awaitLiveStatus
in class NodeManager
Exception
public void startBackup() throws Exception
startBackup
in class NodeManager
Exception
public ActivateCallback startLiveNode() throws Exception
startLiveNode
in class NodeManager
Exception
public void pauseLiveServer() throws Exception
pauseLiveServer
in class NodeManager
Exception
public void crashLiveServer() throws Exception
crashLiveServer
in class NodeManager
Exception
public boolean isAwaitingFailback() throws Exception
isAwaitingFailback
in class NodeManager
Exception
public boolean isBackupLive() throws Exception
isBackupLive
in class NodeManager
Exception
public void interrupt()
interrupt
in class NodeManager
public void releaseBackup()
releaseBackup
in class NodeManager
public SimpleString readNodeId() throws ActiveMQIllegalStateException, IOException
readNodeId
in class NodeManager
ActiveMQIllegalStateException
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.