public class DefaultSetupPersister extends Object implements ConfluenceSetupPersister
Modifier and Type | Field and Description |
---|---|
static Set<String> |
CLUSTER_SETUP_TYPES |
static Set<String> |
MIGRATION_SETUP_TYPES |
static String |
SETUP_TYPE_CLUSTER |
static String |
SETUP_TYPE_CLUSTER_TO_STANDALONE |
static String |
SETUP_TYPE_STANDALONE_TO_CLUSTER |
Constructor and Description |
---|
DefaultSetupPersister() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureSetupSequence(String setupType)
Creates a default bootstrapManager sequence based on current state of confluence.config.xml
|
void |
convertToClusterMigration()
Changes the setup type to a migration from standalone to cluster, and sets the current setup step
|
void |
convertToStandaloneMigration()
Changes the setup type to a migration from cluster to standalone, and sets the current setup step
|
void |
finishSetup()
Ensures that the bootstrapManager is written to a complete state
by overriding all other remaining operations.
|
List<com.atlassian.core.util.PairType> |
getAllVisibleSteps() |
List<com.atlassian.core.util.PairType> |
getCompletedSteps() |
String |
getCurrentDisplayStep()
Gets the key of the current step for displaying in setup step bar UI.
|
String |
getCurrentStep()
Gets the key of the actual current step.
|
String |
getSetupType() |
List<com.atlassian.core.util.PairType> |
getUncompletedSteps() |
boolean |
isDemonstrationContentInstalled() |
boolean |
isSetupTypeClustered()
Determines whether or not the configured setup type is for a clustered edition
|
boolean |
isSetupTypeMigration()
Determines whether or not the configured setup type is a migration to/from clustered
|
void |
progessSetupStep() |
void |
removeClusterSetupEntries()
Removes config file entries pertaining to clustering
|
void |
resetCancelledMigration()
Resets the confluence.cfg.xml into the previous working state after a migration to cluster was cancelled
|
void |
setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig) |
void |
setDemonstrationContentInstalled() |
void |
setMigrationCancelled()
Marks that a migration to cluster was attempted, and should be cleaned up upon next startup.
|
void |
setSetupType(String setupType) |
void |
synchSetupStackWithConfigRecord(String currentStep)
Matches a recorded action in confluence.cfg.xml, element setupStep, to what is in the setupStack.
|
public static final String SETUP_TYPE_CLUSTER
public static final String SETUP_TYPE_STANDALONE_TO_CLUSTER
public static final String SETUP_TYPE_CLUSTER_TO_STANDALONE
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
protected void configureSetupSequence(String setupType)
public void synchSetupStackWithConfigRecord(String currentStep)
ConfluenceSetupPersister
synchSetupStackWithConfigRecord
in interface ConfluenceSetupPersister
currentStep
- the step we are up topublic List<com.atlassian.core.util.PairType> getUncompletedSteps()
getUncompletedSteps
in interface com.atlassian.config.setup.SetupPersister
public List<com.atlassian.core.util.PairType> getCompletedSteps()
getCompletedSteps
in interface com.atlassian.config.setup.SetupPersister
public List<com.atlassian.core.util.PairType> getAllVisibleSteps()
public String getSetupType()
getSetupType
in interface com.atlassian.config.setup.SetupPersister
public void setSetupType(String setupType)
setSetupType
in interface com.atlassian.config.setup.SetupPersister
public void finishSetup() throws com.atlassian.config.setup.SetupException
finishSetup
in interface com.atlassian.config.setup.SetupPersister
com.atlassian.config.setup.SetupException
public void progessSetupStep()
progessSetupStep
in interface com.atlassian.config.setup.SetupPersister
public String getCurrentDisplayStep()
public String getCurrentStep()
getCurrentStep
in interface com.atlassian.config.setup.SetupPersister
public void setDemonstrationContentInstalled()
setDemonstrationContentInstalled
in interface com.atlassian.config.setup.SetupPersister
public boolean isDemonstrationContentInstalled()
isDemonstrationContentInstalled
in interface com.atlassian.config.setup.SetupPersister
public boolean isSetupTypeClustered()
ConfluenceSetupPersister
isSetupTypeClustered
in interface ConfluenceSetupPersister
public boolean isSetupTypeMigration()
ConfluenceSetupPersister
isSetupTypeMigration
in interface ConfluenceSetupPersister
public void convertToClusterMigration()
ConfluenceSetupPersister
convertToClusterMigration
in interface ConfluenceSetupPersister
public void convertToStandaloneMigration()
ConfluenceSetupPersister
convertToStandaloneMigration
in interface ConfluenceSetupPersister
public void resetCancelledMigration()
ConfluenceSetupPersister
resetCancelledMigration
in interface ConfluenceSetupPersister
public void setMigrationCancelled()
ConfluenceSetupPersister
setMigrationCancelled
in interface ConfluenceSetupPersister
public void removeClusterSetupEntries()
ConfluenceSetupPersister
removeClusterSetupEntries
in interface ConfluenceSetupPersister
Copyright © 2003–2020 Atlassian. All rights reserved.