public class DefaultSharedHomeNodeIO extends Object implements SharedHomeNodeStatusReader, SharedHomeNodeStatusWriter
Constructor and Description |
---|
DefaultSharedHomeNodeIO(JiraHome jiraHome) |
Modifier and Type | Method and Description |
---|---|
protected File |
getNodeStatusDirectory() |
NodeSharedHomeStatus |
readNodeStatus(String nodeId)
Reads the status for a node.
|
void |
removeNodeStatus(String nodeId) |
void |
writeNodeStatus(NodeSharedHomeStatus status) |
public DefaultSharedHomeNodeIO(JiraHome jiraHome)
@Nullable public NodeSharedHomeStatus readNodeStatus(@Nonnull String nodeId)
SharedHomeNodeStatusReader
readNodeStatus
in interface SharedHomeNodeStatusReader
nodeId
- the node ID.null
if the node does not exist or is not using
the same shared home as the current node.public void writeNodeStatus(@Nonnull NodeSharedHomeStatus status)
writeNodeStatus
in interface SharedHomeNodeStatusWriter
public void removeNodeStatus(@Nonnull String nodeId)
removeNodeStatus
in interface SharedHomeNodeStatusWriter
Copyright © 2002-2021 Atlassian. All Rights Reserved.