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 ClusterNodePropertiesproperty - key for the property you want to look uppublic Optional<String> getPropertySafely(String key)
getPropertySafely in interface ClusterNodePropertieskey - key for the property you want to look uppublic String getSharedHome()
ClusterNodePropertiesgetSharedHome in interface ClusterNodePropertiespublic String getNodeId()
ClusterNodePropertiesgetNodeId in interface ClusterNodePropertiespublic void refresh()
ClusterNodePropertiesrefresh in interface ClusterNodePropertiespublic boolean propertyFileExists()
ClusterNodePropertiespropertyFileExists in interface ClusterNodePropertiespublic boolean isValid()
ClusterNodePropertiesisValid in interface ClusterNodeProperties@EventListener public void onClearCache(ClearCacheEvent event)
Copyright © 2002-2019 Atlassian. All Rights Reserved.