|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.confluence.setup.DefaultBootstrapManager
public class DefaultBootstrapManager
BootstrapManager is responsible for initializing the dependencies of Confluence environment.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_DIR_NAME
|
| Fields inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager |
|---|
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, setupPersister |
| Fields inherited from interface com.atlassian.confluence.setup.ConfluenceBootstrapConstants |
|---|
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 Summary | |
|---|---|
DefaultBootstrapManager()
|
|
| Method Summary | |
|---|---|
protected void |
afterConfigurationLoaded()
|
void |
bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails,
boolean embedded)
|
void |
bootstrapDatasource(java.lang.String datasourceName,
java.lang.String hibernateDialect)
|
void |
bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
Starts Confluence with a database configuration that has been retrieved from another cluster node. |
void |
checkConfigurationOnStartup()
|
java.lang.String |
getApplicationHome()
|
java.lang.String |
getBaseUrl()
Deprecated. |
java.lang.String |
getConfiguredConfluenceHome()
|
java.io.File |
getConfiguredLocalHome()
Returns the configured local home or null if not configured. |
java.lang.String |
getConfluenceHome()
Deprecated. |
protected java.lang.String |
getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails)
|
java.lang.String |
getDomainName()
Deprecated. |
java.lang.String |
getFilePathProperty(java.lang.String key)
CONFLUENCE_HOME_CONSTANT is replaced on the fly with the current location of confluence. |
java.io.File |
getLocalHome()
Confluence local home directory. |
java.io.File |
getSharedHome()
Confluence shared home directory. |
java.lang.String |
getWebAppContextPath()
|
boolean |
isWebAppContextPathSet()
|
protected boolean |
performPersistenceUpgrade()
|
protected void |
postBootstrapDatabase()
|
void |
publishConfiguration()
|
void |
setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)
|
void |
setConfluenceHome(java.lang.String confluenceHome)
Use for test cases only |
void |
setDatabaseHelper(ConfluenceDatabaseHelper databaseHelper)
|
void |
setWebAppContextPath(java.lang.String webAppContextPath)
|
| Methods inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager |
|---|
databaseContainsExistingData, finishBootstrapInitialisation, getApplicationConfig, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getHomeLocator, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTables, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setApplicationConfig, setBuildNumber, setHibernateConfig, setHibernateConfigurator, setHomeLocator, setOperation, setProperty, setSetupComplete, setSetupPersister, setTables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.config.bootstrap.AtlassianBootstrapManager |
|---|
databaseContainsExistingData, getApplicationConfig, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete |
| Field Detail |
|---|
public static final java.lang.String CONFIG_DIR_NAME
| Constructor Detail |
|---|
public DefaultBootstrapManager()
| Method Detail |
|---|
public void publishConfiguration()
publishConfiguration in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerpublishConfiguration in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic java.lang.String getFilePathProperty(java.lang.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 java.lang.String getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails)
getDbUrl in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager@Deprecated public java.lang.String getConfluenceHome()
BootstrapManager
getConfluenceHome in interface BootstrapManagerpublic java.lang.String getApplicationHome()
getApplicationHome in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetApplicationHome in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic java.io.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 java.io.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 BootstrapManager
public void setConfluenceHome(java.lang.String confluenceHome)
throws com.atlassian.config.ConfigurationException
setConfluenceHome in interface BootstrapManagercom.atlassian.config.ConfigurationException@Deprecated public java.lang.String getBaseUrl()
getBaseUrl in interface BootstrapManager@Deprecated public java.lang.String getDomainName()
getDomainName in interface BootstrapManager
public void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
throws com.atlassian.config.bootstrap.BootstrapException
bootstrapSharedConfiguration in interface BootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionpublic java.lang.String getConfiguredConfluenceHome()
getConfiguredConfluenceHome in interface BootstrapManagerpublic java.io.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.DefaultAtlassianBootstrapManager
public void checkConfigurationOnStartup()
throws com.atlassian.config.bootstrap.BootstrapException
checkConfigurationOnStartup in interface BootstrapManagercom.atlassian.config.bootstrap.BootstrapException
protected void afterConfigurationLoaded()
throws com.atlassian.config.ConfigurationException
afterConfigurationLoaded in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.ConfigurationException
public void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails,
boolean embedded)
throws com.atlassian.config.bootstrap.BootstrapException
bootstrapDatabase in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerbootstrapDatabase in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapException
public void bootstrapDatasource(java.lang.String datasourceName,
java.lang.String hibernateDialect)
throws com.atlassian.config.bootstrap.BootstrapException
bootstrapDatasource in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerbootstrapDatasource in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionprotected void postBootstrapDatabase()
postBootstrapDatabase in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic java.lang.String getWebAppContextPath()
getWebAppContextPath in interface BootstrapManager
public void setWebAppContextPath(java.lang.String webAppContextPath)
throws com.atlassian.config.ConfigurationException
setWebAppContextPath in interface BootstrapManagercom.atlassian.config.ConfigurationExceptionpublic boolean isWebAppContextPathSet()
isWebAppContextPathSet in interface BootstrapManagerpublic void setDatabaseHelper(ConfluenceDatabaseHelper databaseHelper)
public void setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||