public class DefaultBootstrapManager extends com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager implements BootstrapManagerInternal
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_DIR_NAME |
static String |
CONFLUENCE_DATABASE_CHOICE |
static String |
CONFLUENCE_DATABASE_CONNECTION_TYPE |
static String |
HIBERNATE_CONNECTION_DRIVER_CLASS |
static String |
HIBERNATE_CONNECTION_PASSWORD |
static String |
HIBERNATE_CONNECTION_URL |
static String |
HIBERNATE_CONNECTION_USERNAME |
static String |
HIBERNATE_DIALECT |
static String |
SYNCHRONY_BTF |
static String |
SYNCHRONY_BTF_OFF |
static String |
SYNCHRONY_ENCRYPTION_DISABLED |
static String |
SYNCHRONY_PROXY_ENABLED |
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, setupPersister
JWT_KEY_LENGTH, JWT_PRIVATE_KEY, JWT_PUBLIC_KEY
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.
|
Optional<com.atlassian.config.db.DatabaseDetails> |
getDatabaseDetail(String database)
Get Db configuration from config file if we are using db.first setup type
|
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(ClusterConfigurationHelperInternal 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
public static final String SYNCHRONY_BTF
public static final String SYNCHRONY_PROXY_ENABLED
public static final String SYNCHRONY_ENCRYPTION_DISABLED
public static final String SYNCHRONY_BTF_OFF
public static final String HIBERNATE_CONNECTION_DRIVER_CLASS
public static final String HIBERNATE_CONNECTION_URL
public static final String HIBERNATE_CONNECTION_USERNAME
public static final String HIBERNATE_CONNECTION_PASSWORD
public static final String HIBERNATE_DIALECT
public static final String CONFLUENCE_DATABASE_CHOICE
public static final String CONFLUENCE_DATABASE_CONNECTION_TYPE
@Deprecated public void publishConfiguration()
publishConfiguration
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
publishConfiguration
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public Optional<com.atlassian.config.db.DatabaseDetails> getDatabaseDetail(String database) throws com.atlassian.config.ConfigurationException
BootstrapManagerInternal
getDatabaseDetail
in interface BootstrapManagerInternal
database
- the name of databasecom.atlassian.config.ConfigurationException
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(ClusterConfigurationHelperInternal clusterConfigurationHelper)
Copyright © 2003–2017 Atlassian. All rights reserved.