|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.setup.DefaultSetupPersister
public class DefaultSetupPersister
| Field Summary | |
|---|---|
static Set<String> |
CLUSTER_SETUP_ENTRIES
|
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
|
| 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(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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 static final Set<String> MIGRATION_SETUP_TYPES
public static final Set<String> CLUSTER_SETUP_TYPES
public static final Set<String> CLUSTER_SETUP_ENTRIES
| Constructor Detail |
|---|
public DefaultSetupPersister()
| Method Detail |
|---|
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
protected void configureSetupSequence(String setupType)
public 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.SetupPersister
public 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()
ConfluenceSetupPersister
isSetupTypeClustered in interface ConfluenceSetupPersisterpublic boolean isSetupTypeMigration()
ConfluenceSetupPersister
isSetupTypeMigration in interface ConfluenceSetupPersisterpublic void convertToClusterMigration()
ConfluenceSetupPersister
convertToClusterMigration in interface ConfluenceSetupPersisterpublic void convertToStandaloneMigration()
ConfluenceSetupPersister
convertToStandaloneMigration in interface ConfluenceSetupPersisterpublic void resetCancelledMigration()
ConfluenceSetupPersister
resetCancelledMigration in interface ConfluenceSetupPersisterpublic void setMigrationCancelled()
ConfluenceSetupPersister
setMigrationCancelled in interface ConfluenceSetupPersisterpublic void removeClusterSetupEntries()
ConfluenceSetupPersister
removeClusterSetupEntries in interface ConfluenceSetupPersister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||