public interface

ClusterNodeProperties

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

Class Overview

This is used to lookup cluster properties from the underlying properties file.

Summary

Public Methods
String getNodeId()
Get the node id for a clustered or HA installation.
@Nullable String getProperty(String key)
String getSharedHome()
Get the shared home for a clustered or HA installation.
boolean isValid()
whether the underlying cluster.properties file is valid or not
boolean propertyFileExists()
The cluster.properties file is optional.
void refresh()
Called to reload the cluster properties.

Public Methods

public String getNodeId ()

Get the node id for a clustered or HA installation. Will return null if no node id is set.

@Nullable public String getProperty (String key)

Parameters
key key for the property you want to look up
Returns
  • String value of the property, null if it does not exist

public String getSharedHome ()

Get the shared home for a clustered or HA installation. Will return null if no shared home is set.

public boolean isValid ()

whether the underlying cluster.properties file is valid or not

public boolean propertyFileExists ()

The cluster.properties file is optional. If it exists then JIRA is assumed to be in a cluster

public void refresh ()

Called to reload the cluster properties.