|
||||||||||
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 String |
CONFIG_DIR_NAME
|
Fields inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager |
---|
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, log, setupPersister |
Fields inherited from interface com.atlassian.confluence.setup.ConfluenceBootstrapConstants |
---|
ATTACHMENTS_DIR_PROP, CONFLUENCE_HOME_CONSTANT, DEFAULT_LICENSE_REGISTRY_KEY, GLOBAL_PLUGIN_STATE, 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(DatabaseDetails dbDetails,
boolean embedded)
|
void |
bootstrapDatasource(String datasourceName,
String hibernateDialect)
|
void |
bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
Starts Confluence with a database configuration that has been retrieved from another cluster node. |
void |
checkConfigurationOnStartup()
|
String |
getBaseUrl()
Deprecated. |
String |
getConfiguredConfluenceHome()
|
String |
getConfluenceHome()
|
protected String |
getDbUrl(DatabaseDetails dbDetails)
|
String |
getDomainName()
Deprecated. |
String |
getFilePathProperty(String key)
CONFLUENCE_HOME_CONSTANT is replaced on the fly with the current location of confluence. |
String |
getWebAppContextPath()
|
boolean |
isWebAppContextPathSet()
|
protected boolean |
performPersistenceUpgrade()
|
protected void |
postBootstrapDatabase()
|
void |
publishConfiguration()
|
void |
setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)
|
void |
setConfluenceHome(String confluenceHome)
Use for test cases only |
void |
setDatabaseHelper(ConfluenceDatabaseHelper databaseHelper)
|
void |
setWebAppContextPath(String webAppContextPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_DIR_NAME
Constructor Detail |
---|
public DefaultBootstrapManager()
Method Detail |
---|
public void publishConfiguration()
publishConfiguration
in interface AtlassianBootstrapManager
publishConfiguration
in class DefaultAtlassianBootstrapManager
public String getFilePathProperty(String key)
getFilePathProperty
in interface AtlassianBootstrapManager
getFilePathProperty
in class DefaultAtlassianBootstrapManager
key
- the applicationConfig key who's value you want to perform replacement on.protected String getDbUrl(DatabaseDetails dbDetails)
getDbUrl
in class DefaultAtlassianBootstrapManager
public String getConfluenceHome()
getConfluenceHome
in interface BootstrapManager
public void setConfluenceHome(String confluenceHome) throws ConfigurationException
setConfluenceHome
in interface BootstrapManager
ConfigurationException
@Deprecated public String getBaseUrl()
getBaseUrl
in interface BootstrapManager
@Deprecated public String getDomainName()
getDomainName
in interface BootstrapManager
public void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig) throws BootstrapException
bootstrapSharedConfiguration
in interface BootstrapManager
BootstrapException
public String getConfiguredConfluenceHome()
getConfiguredConfluenceHome
in interface BootstrapManager
protected boolean performPersistenceUpgrade()
performPersistenceUpgrade
in class DefaultAtlassianBootstrapManager
public void checkConfigurationOnStartup() throws BootstrapException
checkConfigurationOnStartup
in interface BootstrapManager
BootstrapException
protected void afterConfigurationLoaded() throws ConfigurationException
afterConfigurationLoaded
in class DefaultAtlassianBootstrapManager
ConfigurationException
public void bootstrapDatabase(DatabaseDetails dbDetails, boolean embedded) throws BootstrapException
bootstrapDatabase
in interface AtlassianBootstrapManager
bootstrapDatabase
in class DefaultAtlassianBootstrapManager
BootstrapException
public void bootstrapDatasource(String datasourceName, String hibernateDialect) throws BootstrapException
bootstrapDatasource
in interface AtlassianBootstrapManager
bootstrapDatasource
in class DefaultAtlassianBootstrapManager
BootstrapException
protected void postBootstrapDatabase()
postBootstrapDatabase
in class DefaultAtlassianBootstrapManager
public String getWebAppContextPath()
getWebAppContextPath
in interface BootstrapManager
public void setWebAppContextPath(String webAppContextPath) throws ConfigurationException
setWebAppContextPath
in interface BootstrapManager
ConfigurationException
public boolean isWebAppContextPathSet()
isWebAppContextPathSet
in interface BootstrapManager
public 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 |