public interface ClusterNodes
Modifier and Type | Method and Description |
---|---|
Set<Node> |
all()
Returns all the known nodes in a JIRA cluster.
|
Node |
current()
Returns the current cluster node in JIRA.
|
String |
getHostname()
Returns the IP/hostname configured to be used for this JIRA Cluster.
|
void |
moveToOffline(@NotNull String nodeId)
Update nodes's state to OFFLINE if current state is ACTIVE and nonalive
|
Node |
node(String nodeId) |
void |
removeIfOffline(@NotNull String nodeId)
Remove node from cluster if node is OFFLINE
|
void |
reset()
Resets the cached reference to the current cluster node.
|
Node current()
Node.isClustered()
to see if it's part of a
cluster.void reset()
Set<Node> all()
Node
s in a cluster.@Nullable Node node(String nodeId)
Node
with given nodeID; note that this method may be eventually consistentString getHostname()
NetworkUtils.getLocalHostName()
void removeIfOffline(@NotNull @NotNull String nodeId) throws ClusterStateException
ClusterStateException
- if node is not offline or we are not able to remove nodevoid moveToOffline(@NotNull @NotNull String nodeId) throws ClusterStateException
ClusterStateException
- if node is aliveCopyright © 2002-2022 Atlassian. All Rights Reserved.