public class FileLockNodeManager extends NodeManager
Modifier and Type | Field and Description |
---|---|
protected boolean |
interrupted |
protected static String |
SERVER_LOCK_NAME |
nodeID, uuid
Constructor and Description |
---|
FileLockNodeManager(String directory) |
Modifier and Type | Method and Description |
---|---|
void |
awaitLiveNode() |
void |
crashLiveServer() |
String |
getDirectory() |
void |
interrupt() |
boolean |
isAwaitingFailback() |
boolean |
isBackupLive() |
boolean |
isLiveLocked() |
protected FileLock |
lock(int liveLockPos) |
protected File |
newFile(String fileName) |
void |
pauseLiveServer() |
void |
releaseBackup() |
void |
start() |
void |
startBackup() |
void |
startLiveNode() |
void |
stop() |
void |
stopBackup() |
protected FileLock |
tryLock(int lockPos) |
getNodeId, getUUID, isStarted
protected static final String SERVER_LOCK_NAME
protected boolean interrupted
public FileLockNodeManager(String directory)
public void start() throws Exception
start
in interface HornetQComponent
start
in class NodeManager
Exception
public void stop() throws Exception
stop
in interface HornetQComponent
stop
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 boolean isLiveLocked()
public void interrupt()
interrupt
in class NodeManager
public void releaseBackup() throws Exception
releaseBackup
in class NodeManager
Exception
public void awaitLiveNode() throws Exception
awaitLiveNode
in class NodeManager
Exception
public void startBackup() throws Exception
startBackup
in class NodeManager
Exception
public void 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 void stopBackup() throws Exception
stopBackup
in class NodeManager
Exception
public String getDirectory()
protected FileLock lock(int liveLockPos) throws IOException
IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.