@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, Long timestamp, String ip, Long cacheListenerPort)
Creates a representation of a node.
Node(String nodeId, Node.NodeState state)
This constructor is used wherever the timestamp is not needed at all.
Public Methods
boolean equals(Object o)
Long getCacheListenerPort()
String getIp()
@Nullable String getNodeId()
@Nonnull Node.NodeState getState()
Long getTimestamp()
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, Long timestamp, String ip, Long cacheListenerPort)

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
cacheListenerPort the port the node will listen for new changes
Throws
IllegalArgumentException if the nodeId or state is not allowed

public Node (String nodeId, Node.NodeState state)

This constructor is used wherever the timestamp is not needed at all.

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)

public Long getCacheListenerPort ()

public String getIp ()

@Nullable public String getNodeId ()

@Nonnull public Node.NodeState getState ()

public Long getTimestamp ()

public int hashCode ()

public boolean isClustered ()