|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.setup.DefaultSetupPersister
public class DefaultSetupPersister
Field Summary | |
---|---|
static java.util.Set<java.lang.String> |
CLUSTER_SETUP_ENTRIES
|
static java.util.Set<java.lang.String> |
CLUSTER_SETUP_TYPES
|
static java.util.Set<java.lang.String> |
MIGRATION_SETUP_TYPES
|
static java.lang.String |
SETUP_TYPE_CLUSTER
|
static java.lang.String |
SETUP_TYPE_CLUSTER_TO_STANDALONE
|
static java.lang.String |
SETUP_TYPE_STANDALONE_TO_CLUSTER
|
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 |
Constructor Summary | |
---|---|
DefaultSetupPersister()
|
Method Summary | |
---|---|
protected void |
configureSetupSequence(java.lang.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. |
java.util.List<com.atlassian.core.util.PairType> |
getAllVisibleSteps()
|
java.util.List<com.atlassian.core.util.PairType> |
getCompletedSteps()
|
java.lang.String |
getCurrentDisplayStep()
Gets the key of the current step for displaying in setup step bar UI. |
java.lang.String |
getCurrentStep()
Gets the key of the actual current step. |
java.lang.String |
getSetupType()
|
java.util.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(java.lang.String setupType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SETUP_TYPE_CLUSTER
public static final java.lang.String SETUP_TYPE_STANDALONE_TO_CLUSTER
public static final java.lang.String SETUP_TYPE_CLUSTER_TO_STANDALONE
public static final java.util.Set<java.lang.String> MIGRATION_SETUP_TYPES
public static final java.util.Set<java.lang.String> CLUSTER_SETUP_TYPES
public static final java.util.Set<java.lang.String> CLUSTER_SETUP_ENTRIES
Constructor Detail |
---|
public DefaultSetupPersister()
Method Detail |
---|
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
protected void configureSetupSequence(java.lang.String setupType)
public java.util.List<com.atlassian.core.util.PairType> getUncompletedSteps()
getUncompletedSteps
in interface com.atlassian.config.setup.SetupPersister
public java.util.List<com.atlassian.core.util.PairType> getCompletedSteps()
getCompletedSteps
in interface com.atlassian.config.setup.SetupPersister
public java.util.List<com.atlassian.core.util.PairType> getAllVisibleSteps()
public java.lang.String getSetupType()
getSetupType
in interface com.atlassian.config.setup.SetupPersister
public void setSetupType(java.lang.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 java.lang.String getCurrentDisplayStep()
public java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |