public class DefaultBootstrapManager extends com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager implements BootstrapManager
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_DIR_NAME |
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, setupPersisterATLASSIAN_LICENSE_KEY, ATTACHMENTS_DIR_PROP, CONFLUENCE_HOME_CONSTANT, CONFLUENCE_LOCAL_HOME_CONSTANT, DEFAULT_LICENSE_REGISTRY_KEY, GLOBAL_PLUGIN_STATE, INSTALLATION_DATE_KEY, LICENSE_HASH_KEY, LICENSE_MESSAGE_KEY, LUCENE_INDEX_DIR_PROP, TEMP_DIR_PROP, WEBAPP_CONTEXT_PATH_KEY| Constructor and Description |
|---|
DefaultBootstrapManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConfigurationLoaded() |
void |
bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
Deprecated.
since 5.9
|
void |
checkConfigurationOnStartup() |
void |
cleanupOnShutdown()
If there's any resource that needs to be cleaned up, do it here.
|
String |
getApplicationHome() |
String |
getBaseUrl()
Deprecated.
|
String |
getConfiguredConfluenceHome() |
File |
getConfiguredLocalHome()
Returns the configured local home or null if not configured.
|
String |
getConfluenceHome()
Deprecated.
|
protected String |
getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails) |
String |
getDomainName()
Deprecated.
|
String |
getFilePathProperty(String key)
CONFLUENCE_HOME_CONSTANT is replaced on the fly with the current location of confluence.
|
Properties |
getHibernateProperties() |
File |
getLocalHome()
Confluence local home directory.
|
File |
getSharedHome()
Confluence shared home directory.
|
Connection |
getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails databaseDetails) |
String |
getWebAppContextPath() |
boolean |
isWebAppContextPathSet() |
protected boolean |
performPersistenceUpgrade() |
protected void |
postBootstrapDatabase() |
void |
publishConfiguration()
Deprecated.
since 5.9
|
void |
setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper) |
void |
setConfluenceHome(String confluenceHome)
Use for test cases only
|
void |
setDatabaseHelper(com.atlassian.config.db.DatabaseHelper databaseHelper) |
void |
setWebAppContextPath(String webAppContextPath) |
bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, finishBootstrapInitialisation, getApplicationConfig, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getHibernateConfig, getHibernateConfigurator, getHomeLocator, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTables, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setApplicationConfig, setBuildNumber, setHibernateConfig, setHibernateConfigurator, setHomeLocator, setOperation, setProperty, setSetupComplete, setSetupPersister, setTablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, getApplicationConfig, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getHibernateConfig, getHibernateConfigurator, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupCompletepublic static final String CONFIG_DIR_NAME
@Deprecated public void publishConfiguration()
publishConfiguration in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerpublishConfiguration in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic String getFilePathProperty(String key)
getFilePathProperty in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetFilePathProperty in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerkey - the applicationConfig key who's value you want to perform replacement on.protected String getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails)
getDbUrl in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager@Deprecated public String getConfluenceHome()
BootstrapManagergetConfluenceHome in interface BootstrapManagerpublic String getApplicationHome()
getApplicationHome in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetApplicationHome in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic File getSharedHome()
BootstrapManagerThis directory is shared between all nodes in a cluster. In non-clustered installations without a shared directory, directory called "shared-home" inside local home directory is returned instead.
This directory should be used for data that can be safely shared across a cluster. Any users of this directory should take into account locking to prevent concurrency errors.
getSharedHome in interface BootstrapManagerpublic File getLocalHome()
BootstrapManagerThis directory is only visible to the local node in a cluster.
This directory should be used for data that must be node specific and cannot be shared between cluster nodes.
getLocalHome in interface BootstrapManagerpublic void setConfluenceHome(String confluenceHome) throws com.atlassian.config.ConfigurationException
setConfluenceHome in interface BootstrapManagercom.atlassian.config.ConfigurationException@Deprecated public String getBaseUrl()
getBaseUrl in interface BootstrapManager@Deprecated public String getDomainName()
getDomainName in interface BootstrapManager@Deprecated public void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig) throws com.atlassian.config.bootstrap.BootstrapException
bootstrapSharedConfiguration in interface BootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionpublic String getConfiguredConfluenceHome()
getConfiguredConfluenceHome in interface BootstrapManagerpublic File getConfiguredLocalHome()
BootstrapManager
Only bootstrap code should need this method. Most code should use
BootstrapManager.getLocalHome() instead.
getConfiguredLocalHome in interface BootstrapManagerprotected boolean performPersistenceUpgrade()
performPersistenceUpgrade in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic Properties getHibernateProperties()
getHibernateProperties in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetHibernateProperties in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic Connection getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails databaseDetails) throws com.atlassian.config.bootstrap.BootstrapException
getTestDatabaseConnection in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetTestDatabaseConnection in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionpublic void checkConfigurationOnStartup()
throws com.atlassian.config.bootstrap.BootstrapException
checkConfigurationOnStartup in interface BootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionpublic void cleanupOnShutdown()
BootstrapManagercleanupOnShutdown in interface BootstrapManagerprotected void afterConfigurationLoaded()
throws com.atlassian.config.ConfigurationException
afterConfigurationLoaded in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.ConfigurationExceptionprotected void postBootstrapDatabase()
throws com.atlassian.config.bootstrap.BootstrapException
postBootstrapDatabase in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionpublic String getWebAppContextPath()
getWebAppContextPath in interface BootstrapManagerpublic void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException
setWebAppContextPath in interface BootstrapManagercom.atlassian.config.ConfigurationExceptionpublic boolean isWebAppContextPathSet()
isWebAppContextPathSet in interface BootstrapManagerpublic void setDatabaseHelper(com.atlassian.config.db.DatabaseHelper databaseHelper)
public void setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)
Copyright © 2003–2016 Atlassian. All rights reserved.