Interface ConfluenceSetupPersister
-
- All Superinterfaces:
com.atlassian.config.setup.SetupPersister
- All Known Implementing Classes:
DefaultSetupPersister
@Internal public interface ConfluenceSetupPersister extends com.atlassian.config.setup.SetupPersister
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
convertToClusterMigration()
Changes the setup type to a migration from standalone to cluster, and sets the current setup stepvoid
convertToStandaloneMigration()
Changes the setup type to a migration from cluster to standalone, and sets the current setup stepboolean
isSetupTypeClustered()
Determines whether or not the configured setup type is for a clustered editionboolean
isSetupTypeMigration()
Determines whether or not the configured setup type is a migration to/from clusteredvoid
removeClusterSetupEntries()
Removes config file entries pertaining to clusteringvoid
resetCancelledMigration()
Resets the confluence.cfg.xml into the previous working state after a migration to cluster was cancelledvoid
setMigrationCancelled()
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.
-
-
-
Method Detail
-
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
void synchSetupStackWithConfigRecord(String currentStep)
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
-
-