Class DisasterRecoveryLauncher

java.lang.Object
com.atlassian.jira.index.ha.DisasterRecoveryLauncher

public class DisasterRecoveryLauncher extends Object
This class will check for a disaster recovery scenario and restore the index if required.
Since:
v6.3.5
  • Constructor Details

    • DisasterRecoveryLauncher

      public DisasterRecoveryLauncher()
  • Method Details

    • getRecoveryMode

      public DisasterRecoveryLauncher.RecoveryMode 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.