public class

ClusterNodePropertiesImpl

extends Object
implements ClusterNodeProperties
java.lang.Object
   ↳ com.atlassian.jira.cluster.ClusterNodePropertiesImpl

Class Overview

Responsible for loading the cluster properties from file, if it exists

Summary

Constants
String JIRA_CLUSTER_CONFIG_PROPERTIES
String JIRA_NODE_ID
String JIRA_SHARED_HOME
Public Constructors
ClusterNodePropertiesImpl(JiraHome jiraHome)
Public Methods
String getNodeId()
Get the node id for a clustered or HA installation.
@Nullable String getProperty(String property)
String getSharedHome()
Get the shared home for a clustered or HA installation.
boolean isValid()
whether the underlying cluster.properties file is valid or not
@EventListener void onClearCache(ClearCacheEvent event)
boolean propertyFileExists()
The cluster.properties file is optional.
void refresh()
Called to reload the cluster properties.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.cluster.ClusterNodeProperties

Constants

public static final String JIRA_CLUSTER_CONFIG_PROPERTIES

Constant Value: "cluster.properties"

public static final String JIRA_NODE_ID

Constant Value: "jira.node.id"

public static final String JIRA_SHARED_HOME

Constant Value: "jira.shared.home"

Public Constructors

public ClusterNodePropertiesImpl (JiraHome jiraHome)

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 property)

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

@EventListener public void onClearCache (ClearCacheEvent event)

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.