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, isStartedprotected static final String SERVER_LOCK_NAME
protected boolean interrupted
public FileLockNodeManager(String directory)
public void start()
throws Exception
start in interface HornetQComponentstart in class NodeManagerExceptionpublic void stop()
throws Exception
stop in interface HornetQComponentstop in class NodeManagerExceptionpublic boolean isAwaitingFailback()
throws Exception
isAwaitingFailback in class NodeManagerExceptionpublic boolean isBackupLive()
throws Exception
isBackupLive in class NodeManagerExceptionpublic boolean isLiveLocked()
public void interrupt()
interrupt in class NodeManagerpublic void releaseBackup()
throws Exception
releaseBackup in class NodeManagerExceptionpublic void awaitLiveNode()
throws Exception
awaitLiveNode in class NodeManagerExceptionpublic void startBackup()
throws Exception
startBackup in class NodeManagerExceptionpublic void startLiveNode()
throws Exception
startLiveNode in class NodeManagerExceptionpublic void pauseLiveServer()
throws Exception
pauseLiveServer in class NodeManagerExceptionpublic void crashLiveServer()
throws Exception
crashLiveServer in class NodeManagerExceptionpublic void stopBackup()
throws Exception
stopBackup in class NodeManagerExceptionpublic String getDirectory()
protected FileLock lock(int liveLockPos) throws IOException
IOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.