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, setupPersister
ATLASSIAN_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, setTables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bootstrapDatabase, 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, setSetupComplete
public static final String CONFIG_DIR_NAME
@Deprecated public void publishConfiguration()
publishConfiguration
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
publishConfiguration
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public String getFilePathProperty(String key)
getFilePathProperty
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getFilePathProperty
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
key
- 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()
BootstrapManager
getConfluenceHome
in interface BootstrapManager
public String getApplicationHome()
getApplicationHome
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getApplicationHome
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public File getSharedHome()
BootstrapManager
This 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 BootstrapManager
public File getLocalHome()
BootstrapManager
This 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 BootstrapManager
public void setConfluenceHome(String confluenceHome) throws com.atlassian.config.ConfigurationException
setConfluenceHome
in interface BootstrapManager
com.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 BootstrapManager
com.atlassian.config.bootstrap.BootstrapException
public String getConfiguredConfluenceHome()
getConfiguredConfluenceHome
in interface BootstrapManager
public File getConfiguredLocalHome()
BootstrapManager
Only bootstrap code should need this method. Most code should use
BootstrapManager.getLocalHome()
instead.
getConfiguredLocalHome
in interface BootstrapManager
protected boolean performPersistenceUpgrade()
performPersistenceUpgrade
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public Properties getHibernateProperties()
getHibernateProperties
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getHibernateProperties
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public Connection getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails databaseDetails) throws com.atlassian.config.bootstrap.BootstrapException
getTestDatabaseConnection
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getTestDatabaseConnection
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
public void checkConfigurationOnStartup() throws com.atlassian.config.bootstrap.BootstrapException
checkConfigurationOnStartup
in interface BootstrapManager
com.atlassian.config.bootstrap.BootstrapException
public void cleanupOnShutdown()
BootstrapManager
cleanupOnShutdown
in interface BootstrapManager
protected void afterConfigurationLoaded() throws com.atlassian.config.ConfigurationException
afterConfigurationLoaded
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.ConfigurationException
protected void postBootstrapDatabase() throws com.atlassian.config.bootstrap.BootstrapException
postBootstrapDatabase
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
public String getWebAppContextPath()
getWebAppContextPath
in interface BootstrapManager
public void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException
setWebAppContextPath
in interface BootstrapManager
com.atlassian.config.ConfigurationException
public boolean isWebAppContextPathSet()
isWebAppContextPathSet
in interface BootstrapManager
public void setDatabaseHelper(com.atlassian.config.db.DatabaseHelper databaseHelper)
public void setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)
Copyright © 2003–2015 Atlassian. All rights reserved.