Package com.atlassian.jira.cluster
Interface ClusterNodeProperties
- All Known Implementing Classes:
ClusterNodePropertiesImpl
public interface ClusterNodeProperties
This is used to lookup cluster properties from the underlying properties file.
- Since:
- v6.1
-
Method Summary
Modifier and TypeMethodDescriptionGet the node id for a clustered or HA installation.getProperty(String key) getPropertySafely(String key) Get the shared home for a clustered or HA installation.booleanbooleanisValid()whether the underlying cluster.properties file is valid or notbooleanThe cluster.properties file is optional.voidrefresh()Called to reload the cluster properties.
-
Method Details
-
getProperty
- Parameters:
key- key for the property you want to look up- Returns:
- String value of the property, null if it does not exist
-
getPropertySafely
- Parameters:
key- key for the property you want to look up- Returns:
- An optional containing the string value of the property, or empty if it does not exist
-
getNodeId
String getNodeId()Get the node id for a clustered or HA installation. Will return null if no node id is set.- Returns:
-
refresh
void refresh()Called to reload the cluster properties. -
propertyFileExists
boolean propertyFileExists()The cluster.properties file is optional. If it exists then JIRA is assumed to be in a cluster- Returns:
-
isValid
boolean isValid()whether the underlying cluster.properties file is valid or not- Returns:
-
isClustered
boolean isClustered()
-