Interface ConfluenceSetupPersister
- All Superinterfaces:
com.atlassian.config.setup.SetupPersister
- All Known Implementing Classes:
DefaultSetupPersister
@Internal
public interface ConfluenceSetupPersister
extends com.atlassian.config.setup.SetupPersister
-
Field Summary
Fields inherited from interface com.atlassian.config.setup.SetupPersister
SETUP_INSTALL_DEMO_DATA, SETUP_STATE_COMPLETE, SETUP_TYPE_CUSTOM, SETUP_TYPE_INITIAL, SETUP_TYPE_INSTALL
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Changes the setup type to a migration from standalone to cluster, and sets the current setup stepvoid
Changes the setup type to a migration from cluster to standalone, and sets the current setup stepboolean
Determines whether or not the configured setup type is for a clustered editionboolean
Determines whether or not the configured setup type is a migration to/from clusteredvoid
Removes config file entries pertaining to clusteringvoid
Resets the confluence.cfg.xml into the previous working state after a migration to cluster was cancelledvoid
Marks that a migration to cluster was attempted, and should be cleaned up upon next startup.void
synchSetupStackWithConfigRecord
(String currentStep) Matches a recorded action in confluence.cfg.xml, element setupStep, to what is in the setupStack.Methods inherited from interface com.atlassian.config.setup.SetupPersister
finishSetup, getCompletedSteps, getCurrentStep, getSetupType, getUncompletedSteps, isDemonstrationContentInstalled, progessSetupStep, setDemonstrationContentInstalled, setSetupType
-
Method Details
-
isSetupTypeClustered
boolean isSetupTypeClustered()Determines whether or not the configured setup type is for a clustered edition- Returns:
- True if the setup type is clustered or migration to cluster
-
isSetupTypeMigration
boolean isSetupTypeMigration()Determines whether or not the configured setup type is a migration to/from clustered- Returns:
- True if the setup type is a migration
-
convertToClusterMigration
void convertToClusterMigration()Changes the setup type to a migration from standalone to cluster, and sets the current setup step -
convertToStandaloneMigration
void convertToStandaloneMigration()Changes the setup type to a migration from cluster to standalone, and sets the current setup step -
resetCancelledMigration
void resetCancelledMigration()Resets the confluence.cfg.xml into the previous working state after a migration to cluster was cancelled -
setMigrationCancelled
void setMigrationCancelled()Marks that a migration to cluster was attempted, and should be cleaned up upon next startup. -
removeClusterSetupEntries
void removeClusterSetupEntries()Removes config file entries pertaining to clustering -
synchSetupStackWithConfigRecord
Matches a recorded action in confluence.cfg.xml, element setupStep, to what is in the setupStack. Will then pop all previously performed steps.- Parameters:
currentStep
- the step we are up to
-