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, 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(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, 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, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete
public 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.AtlassianBootstrapManager
init
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
@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)
BootstrapManagerInternal
getDatabaseDetail
in interface BootstrapManagerInternal
database
- the name of databasepublic String getFilePathProperty(String key)
getFilePathProperty
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getFilePathProperty
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
key
- 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()
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 void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
bootstrapSharedConfiguration
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
public Optional<String> getDataSourceName()
BootstrapManager
getDataSourceName
in interface BootstrapManager
public String getHibernateDialect()
BootstrapManager
getHibernateDialect
in interface BootstrapManager
AvailableSettings.DIALECT
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)
setWebAppContextPath
in interface BootstrapManager
public boolean isWebAppContextPathSet()
isWebAppContextPathSet
in interface BootstrapManager
Copyright © 2003–2020 Atlassian. All rights reserved.