Package com.atlassian.jira.index.ha
Class DisasterRecoveryLauncher
java.lang.Object
com.atlassian.jira.index.ha.DisasterRecoveryLauncher
This class will check for a disaster recovery scenario and restore the index if required.
- Since:
- v6.3.5
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClearing of the cluster locks needs to happen before plugin load as plugins may take locks during initialisation.Returns the recovery mode of the instance.voidstart()
-
Constructor Details
-
DisasterRecoveryLauncher
public DisasterRecoveryLauncher()
-
-
Method Details
-
getRecoveryMode
Returns the recovery mode of the instance. This is one of:- PRIMARY - the main JIRA instance, which has no special DR configuration set
- SECONDARY - the recovery instance as indicated by the disaster.recovery property being true
- COLD - a secondary instance on initialisation. This indicates an instance that is currently doing work to recover after which it will report itself as SECONDARY
- Returns:
- the active recovery mode
-
start
public void start() -
earlyStart
public void earlyStart()Clearing of the cluster locks needs to happen before plugin load as plugins may take locks during initialisation.
-