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 |
JTDS_PROTOCOL |
static String |
LOCK_FILE_NAME |
static String |
SYNCHRONY_BTF
Deprecated.
|
static String |
SYNCHRONY_BTF_OFF
Since 6.12 this field defines a bandana property, and not a field in the config file
|
static String |
SYNCHRONY_ENCRYPTION_DISABLED |
static String |
SYNCHRONY_PROXY_ENABLED |
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, setupPersisterJWT_KEY_LENGTH, JWT_PRIVATE_KEY, JWT_PUBLIC_KEYATLASSIAN_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(com.atlassian.config.ApplicationConfiguration applicationConfiguration,
ClusterConfigurationHelperInternal clusterConfigurationHelper,
com.atlassian.config.db.DatabaseHelper databaseHelper,
HealthCheckRunner healthCheckRunner,
com.atlassian.config.db.HibernateConfigurator hibernateConfigurator,
com.atlassian.config.HomeLocator homeLocator,
com.atlassian.config.setup.SetupPersister setupPersister,
List<String> tables) |
| 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() |
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
|
Optional<String> |
getDataSourceName()
Returns the name of the JNDI-based DataSource, if any.
|
protected String |
getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails) |
String |
getFilePathProperty(String key)
is replaced on the fly with the current location of confluence.
This effectively allows Confluence to be moved without breaking some system paths (like attachments). This does not handle moves to a different drive though. |
String |
getHibernateDialect()
Returns the SQL dialect being used by Hibernate.
|
Properties |
getHibernateProperties() |
File |
getLocalHome()
Confluence local home directory.
|
File |
getSharedHome()
Confluence shared home directory.
|
Connection |
getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails databaseDetails) |
String |
getWebAppContextPath() |
void |
init() |
boolean |
isWebAppContextPathSet() |
protected boolean |
performPersistenceUpgrade() |
protected void |
postBootstrapDatabase() |
void |
publishConfiguration()
Deprecated.
since 5.9
|
void |
setConfluenceHome(String confluenceHome) |
void |
setWebAppContextPath(String webAppContextPath) |
bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, finishBootstrapInitialisation, getApplicationConfig, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getHibernateConfig, getHibernateConfigurator, getHomeLocator, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTables, getTestDatasourceConnection, 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, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupCompletepublic static final String CONFIG_DIR_NAME
public static final String LOCK_FILE_NAME
@Deprecated 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 CONFLUENCE_DATABASE_CHOICE
public static final String JTDS_PROTOCOL
public DefaultBootstrapManager(com.atlassian.config.ApplicationConfiguration applicationConfiguration,
ClusterConfigurationHelperInternal clusterConfigurationHelper,
com.atlassian.config.db.DatabaseHelper databaseHelper,
HealthCheckRunner healthCheckRunner,
com.atlassian.config.db.HibernateConfigurator hibernateConfigurator,
com.atlassian.config.HomeLocator homeLocator,
com.atlassian.config.setup.SetupPersister setupPersister,
List<String> tables)
public void init()
throws com.atlassian.config.bootstrap.BootstrapException
init in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerinit in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapException@Deprecated public void publishConfiguration()
publishConfiguration in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerpublishConfiguration in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic Optional<com.atlassian.config.db.DatabaseDetails> getDatabaseDetail(String database)
BootstrapManagerInternalgetDatabaseDetail in interface BootstrapManagerInternaldatabase - the name of databasepublic String getFilePathProperty(String key)
getFilePathProperty in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetFilePathProperty in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerkey - the property key whose value you want to perform replacement upon.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 void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
bootstrapSharedConfiguration 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 BootstrapManagerpublic Optional<String> getDataSourceName()
BootstrapManagergetDataSourceName in interface BootstrapManagerpublic String getHibernateDialect()
BootstrapManagergetHibernateDialect in interface BootstrapManagerAvailableSettings.DIALECTprotected 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)
setWebAppContextPath in interface BootstrapManagerpublic boolean isWebAppContextPathSet()
isWebAppContextPathSet in interface BootstrapManagerCopyright © 2003–2020 Atlassian. All rights reserved.