com.atlassian.jira.cluster.lock
Class DefaultSharedHomeNodeIO
java.lang.Object
com.atlassian.jira.cluster.lock.DefaultSharedHomeNodeIO
- All Implemented Interfaces:
- SharedHomeNodeStatusReader, SharedHomeNodeStatusWriter
public class DefaultSharedHomeNodeIO
- extends Object
- implements SharedHomeNodeStatusReader, SharedHomeNodeStatusWriter
A reader and writer for shared home node status.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSharedHomeNodeIO
public DefaultSharedHomeNodeIO(JiraHome jiraHome)
getNodeStatusDirectory
@Nonnull
protected File getNodeStatusDirectory()
readNodeStatus
@Nullable
public NodeSharedHomeStatus readNodeStatus(@Nonnull
String nodeId)
- Description copied from interface:
SharedHomeNodeStatusReader
- Reads the status for a node.
- Specified by:
readNodeStatus
in interface SharedHomeNodeStatusReader
- Parameters:
nodeId
- the node ID.
- Returns:
- the status for the specified node, or
null
if the node does not exist or is not using
the same shared home as the current node.
writeNodeStatus
public void writeNodeStatus(@Nonnull
NodeSharedHomeStatus status)
- Specified by:
writeNodeStatus
in interface SharedHomeNodeStatusWriter
removeNodeStatus
public void removeNodeStatus(@Nonnull
String nodeId)
- Specified by:
removeNodeStatus
in interface SharedHomeNodeStatusWriter
Copyright © 2002-2014 Atlassian. All Rights Reserved.