|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.cluster.ClusterNodePropertiesImpl
public class ClusterNodePropertiesImpl
Responsible for loading the cluster properties from file, if it exists
Field Summary | |
---|---|
static String |
JIRA_CLUSTER_CONFIG_PROPERTIES
|
static String |
JIRA_NODE_ID
|
static String |
JIRA_SHARED_HOME
|
Constructor Summary | |
---|---|
ClusterNodePropertiesImpl(JiraHome jiraHome)
|
Method Summary | |
---|---|
String |
getNodeId()
Get the node id for a clustered or HA installation. |
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 |
void |
onClearCache(ClearCacheEvent event)
|
boolean |
propertyFileExists()
The cluster.properties file is optional. |
void |
refresh()
Called to reload the cluster properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JIRA_CLUSTER_CONFIG_PROPERTIES
public static final String JIRA_SHARED_HOME
public static final String JIRA_NODE_ID
Constructor Detail |
---|
public ClusterNodePropertiesImpl(JiraHome jiraHome)
Method Detail |
---|
@Nullable public String getProperty(String property)
getProperty
in interface ClusterNodeProperties
property
- key for the property you want to look up
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |