|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.cluster.FailoverPropertiesImpl
public class FailoverPropertiesImpl
Responsible for loading the failover properties from file, if it exists
| Field Summary | |
|---|---|
static String |
JIRA_FAILOVER_CONFIG_PROPERTIES
|
static String |
JIRA_NODE_ID
|
static String |
JIRA_SHARED_HOME
|
| Constructor Summary | |
|---|---|
FailoverPropertiesImpl(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 jira-ha.properties file is valid or not |
void |
onClearCache(ClearCacheEvent event)
|
boolean |
propertyFileExists()
The jira-ha.properties file is optional. |
void |
refresh()
Called to reload the failover 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_FAILOVER_CONFIG_PROPERTIES
public static final String JIRA_SHARED_HOME
public static final String JIRA_NODE_ID
| Constructor Detail |
|---|
public FailoverPropertiesImpl(JiraHome jiraHome)
| Method Detail |
|---|
@Nullable public String getProperty(String property)
getProperty in interface FailoverPropertiesproperty - key for the property you want to look up
public String getSharedHome()
FailoverProperties
getSharedHome in interface FailoverPropertiespublic String getNodeId()
FailoverProperties
getNodeId in interface FailoverPropertiespublic void refresh()
FailoverProperties
refresh in interface FailoverPropertiespublic boolean propertyFileExists()
FailoverProperties
propertyFileExists in interface FailoverPropertiespublic boolean isValid()
FailoverProperties
isValid in interface FailoverProperties@EventListener public void onClearCache(ClearCacheEvent event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||