public interface

ClusterNodes

com.atlassian.jira.cluster.ClusterNodes
Known Indirect Subclasses

Class Overview

Provides access to cluster nodes.

Summary

Public Methods
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 reset()
Resets the cached reference to the current cluster node.

Public Methods

public Set<Node> all ()

Returns all the known nodes in a JIRA cluster. If not clustered this will return an empty set.

Returns
  • a collection of Nodes in a cluster.

public Node current ()

Returns the current cluster node in JIRA.

Returns
  • a non-null instance; call isClustered() to see if it's part of a cluster.

public String getHostname ()

Returns the IP/hostname configured to be used for this JIRA Cluster. If none is configured, localhost is returned.

Returns
  • The IP/hostname configured to be used for this JIRA Cluster.

public void reset ()

Resets the cached reference to the current cluster node.