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)
ConfluenceSetupPersistersynchSetupStackWithConfigRecord in interface ConfluenceSetupPersistercurrentStep - the step we are up topublic List<com.atlassian.core.util.PairType> getUncompletedSteps()
getUncompletedSteps in interface com.atlassian.config.setup.SetupPersisterpublic List<com.atlassian.core.util.PairType> getCompletedSteps()
getCompletedSteps in interface com.atlassian.config.setup.SetupPersisterpublic List<com.atlassian.core.util.PairType> getAllVisibleSteps()
public String getSetupType()
getSetupType in interface com.atlassian.config.setup.SetupPersisterpublic void setSetupType(String setupType)
setSetupType in interface com.atlassian.config.setup.SetupPersisterpublic void finishSetup()
throws com.atlassian.config.setup.SetupException
finishSetup in interface com.atlassian.config.setup.SetupPersistercom.atlassian.config.setup.SetupExceptionpublic void progessSetupStep()
progessSetupStep in interface com.atlassian.config.setup.SetupPersisterpublic String getCurrentDisplayStep()
public String getCurrentStep()
getCurrentStep in interface com.atlassian.config.setup.SetupPersisterpublic void setDemonstrationContentInstalled()
setDemonstrationContentInstalled in interface com.atlassian.config.setup.SetupPersisterpublic boolean isDemonstrationContentInstalled()
isDemonstrationContentInstalled in interface com.atlassian.config.setup.SetupPersisterpublic boolean isSetupTypeClustered()
ConfluenceSetupPersisterisSetupTypeClustered in interface ConfluenceSetupPersisterpublic boolean isSetupTypeMigration()
ConfluenceSetupPersisterisSetupTypeMigration in interface ConfluenceSetupPersisterpublic void convertToClusterMigration()
ConfluenceSetupPersisterconvertToClusterMigration in interface ConfluenceSetupPersisterpublic void convertToStandaloneMigration()
ConfluenceSetupPersisterconvertToStandaloneMigration in interface ConfluenceSetupPersisterpublic void resetCancelledMigration()
ConfluenceSetupPersisterresetCancelledMigration in interface ConfluenceSetupPersisterpublic void setMigrationCancelled()
ConfluenceSetupPersistersetMigrationCancelled in interface ConfluenceSetupPersisterpublic void removeClusterSetupEntries()
ConfluenceSetupPersisterremoveClusterSetupEntries in interface ConfluenceSetupPersisterCopyright © 2003–2022 Atlassian. All rights reserved.