@Immutable public class

Node

extends Object
java.lang.Object
   ↳ com.atlassian.jira.cluster.Node

Class Overview

Represents a node in the cluster

Summary

Nested Classes
enum Node.NodeState  
Fields
public static Node NOT_CLUSTERED Special node that is used when JIRA is not configured for clustering.
Public Constructors
Node(String nodeId, Node.NodeState state)
Creates a representation of a node.
Public Methods
boolean equals(Object o)
@Nullable String getNodeId()
@Nonnull Node.NodeState getState()
int hashCode()
boolean isClustered()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static Node NOT_CLUSTERED

Special node that is used when JIRA is not configured for clustering.

Public Constructors

public Node (String nodeId, Node.NodeState state)

Creates a representation of a node.

Parameters
nodeId the node's ID, which must be neither null nor blank
state the node's initial state, which must not be null
Throws
IllegalArgumentException if the nodeId or state is not allowed

Public Methods

public boolean equals (Object o)

@Nullable public String getNodeId ()

@Nonnull public Node.NodeState getState ()

public int hashCode ()

public boolean isClustered ()