public class DefaultSharedHomeNodeIO extends Object implements SharedHomeNodeStatusReader, SharedHomeNodeStatusWriter
Constructor and Description |
---|
DefaultSharedHomeNodeIO(FileStores fileStores) |
Modifier and Type | Method and Description |
---|---|
NodeSharedHomeStatus |
readNodeStatus(String nodeId)
Reads the status for a node.
|
void |
removeNodeStatus(String nodeId) |
void |
writeNodeStatus(NodeSharedHomeStatus status) |
public DefaultSharedHomeNodeIO(FileStores fileStores)
@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-2024 Atlassian. All Rights Reserved.