public class ClusterNodePropertiesImpl extends Object implements ClusterNodeProperties
Modifier and Type | Field and Description |
---|---|
static String |
JIRA_CLUSTER_CONFIG_PROPERTIES |
static String |
JIRA_NODE_ID |
static String |
JIRA_SHARED_HOME |
Constructor and Description |
---|
ClusterNodePropertiesImpl(JiraHome jiraHome) |
Modifier and Type | Method and Description |
---|---|
String |
getNodeId()
Get the node id for a clustered or HA installation.
|
String |
getProperty(String property) |
Optional<String> |
getPropertySafely(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
|
void |
onClearCache(ClearCacheEvent event) |
boolean |
propertyFileExists()
The cluster.properties file is optional.
|
void |
refresh()
Called to reload the cluster properties.
|
public static final String JIRA_CLUSTER_CONFIG_PROPERTIES
public static final String JIRA_SHARED_HOME
public static final String JIRA_NODE_ID
public ClusterNodePropertiesImpl(JiraHome jiraHome)
@Nullable public String getProperty(String property)
getProperty
in interface ClusterNodeProperties
property
- key for the property you want to look uppublic Optional<String> getPropertySafely(String key)
getPropertySafely
in interface ClusterNodeProperties
key
- key for the property you want to look uppublic String getSharedHome()
ClusterNodeProperties
getSharedHome
in interface ClusterNodeProperties
public String getNodeId()
ClusterNodeProperties
getNodeId
in interface ClusterNodeProperties
public void refresh()
ClusterNodeProperties
refresh
in interface ClusterNodeProperties
public boolean propertyFileExists()
ClusterNodeProperties
propertyFileExists
in interface ClusterNodeProperties
public boolean isValid()
ClusterNodeProperties
isValid
in interface ClusterNodeProperties
@EventListener public void onClearCache(ClearCacheEvent event)
Copyright © 2002-2018 Atlassian. All Rights Reserved.