public class DefaultBootstrapManager extends com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager implements BootstrapManager
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFACTS_DIR |
static String |
BUILD_DIRECTORY_PARAM |
static String |
BUILD_WORKING_DIR |
static String |
CONFIG_DIRECTORY_PARAM |
static String |
REPOSITORY_LOGS_PARAM |
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, setupPersisterINSTANCE_FINGERPRINT_PARAM, SERVER_FINGERPRINT_PARAM| Constructor and Description |
|---|
DefaultBootstrapManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConfigurationLoaded() |
String |
getArtifactsDirectory()
This method returns the root directory underneath which the artifacts are stored.
|
URI |
getBrokerClientURI() |
URI |
getBrokerURI() |
String |
getBuildDirectory()
Gets the directory where Bamboo's build files sit.
|
String |
getBuildWorkingDirectory()
This method returns the root directory underneath which the build directories are located.
|
String |
getConfigDirectory()
Gets the directory where Bamboo's administration.xml file sits
|
protected String |
getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails) |
ServerFingerprint |
getFingerprint() |
File |
getIndexDirectory()
Returns the index directory as stored in the cfg.xml file with the bambooHome property replaced
|
String |
getRepositoryLogsDirectory() |
String |
getServerID() |
int |
getServerKey()
Returns server key used for
BambooEntityOids of this Bamboo instance. |
boolean |
initializeServerKey()
Initializes server key used for
BambooEntityOids of this Bamboo instance based on server ID. |
protected boolean |
performPersistenceUpgrade() |
protected void |
postBootstrapDatabase() |
void |
publishConfiguration() |
void |
setArtifactsDirectory(String artifactsDir) |
void |
setBrokerClientURI(URI brokerURI) |
void |
setBrokerURI(URI brokerURI) |
void |
setBuildDirectory(String buildDirectory) |
void |
setBuildWorkingDirectory(String buildWorkingDirectory) |
void |
setConfigDirectory(String configurationDirectory) |
void |
setRepositoryLogsDirectory(String repositoryLogsDirectory) |
void |
setServerID(String serverId) |
void |
setServerKey(int serverKey)
Set server key used for
BambooEntityOids for this Bamboo instance. |
bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, finishBootstrapInitialisation, getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getFilePathProperty, 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, setTablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getFilePathProperty, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupCompletepublic static final String CONFIG_DIRECTORY_PARAM
public static final String BUILD_DIRECTORY_PARAM
public static final String BUILD_WORKING_DIR
public static final String ARTIFACTS_DIR
public static final String REPOSITORY_LOGS_PARAM
protected void afterConfigurationLoaded()
throws com.atlassian.config.ConfigurationException
afterConfigurationLoaded in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.ConfigurationExceptionpublic String getConfigDirectory()
BootstrapManagergetConfigDirectory in interface BootstrapManagerpublic void setConfigDirectory(String configurationDirectory)
setConfigDirectory in interface BootstrapManagerpublic String getBuildWorkingDirectory()
BootstrapManagergetBuildWorkingDirectory in interface BootstrapManagerpublic void setBuildWorkingDirectory(String buildWorkingDirectory)
setBuildWorkingDirectory in interface BootstrapManagerpublic void setArtifactsDirectory(String artifactsDir)
setArtifactsDirectory in interface BootstrapManagerpublic String getArtifactsDirectory()
BootstrapManagergetArtifactsDirectory in interface BootstrapManager@Nullable public File getIndexDirectory()
BootstrapManagergetIndexDirectory in interface BootstrapManagerpublic String getBuildDirectory()
BootstrapManagergetBuildDirectory in interface BootstrapManagerpublic void setBuildDirectory(String buildDirectory)
setBuildDirectory in interface BootstrapManagerpublic String getRepositoryLogsDirectory()
getRepositoryLogsDirectory in interface BootstrapManagerpublic void setRepositoryLogsDirectory(@NotNull
String repositoryLogsDirectory)
setRepositoryLogsDirectory in interface BootstrapManagerpublic void publishConfiguration()
publishConfiguration in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerpublishConfiguration in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic URI getBrokerURI() throws URISyntaxException
getBrokerURI in interface BootstrapManagerURISyntaxExceptionpublic void setBrokerURI(URI brokerURI)
setBrokerURI in interface BootstrapManagerpublic URI getBrokerClientURI() throws URISyntaxException
getBrokerClientURI in interface BootstrapManagerURISyntaxExceptionpublic void setBrokerClientURI(URI brokerURI)
setBrokerClientURI in interface BootstrapManagerprotected boolean performPersistenceUpgrade()
performPersistenceUpgrade in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerprotected void postBootstrapDatabase()
throws com.atlassian.config.bootstrap.BootstrapException
postBootstrapDatabase in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionprotected String getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails)
getDbUrl in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagerpublic String getServerID()
getServerID in interface BootstrapManagerpublic void setServerID(String serverId)
setServerID in interface BootstrapManagerpublic boolean initializeServerKey()
BootstrapManagerBambooEntityOids of this Bamboo instance based on server ID. Does nothing if the server key is already configured.
This method should be externally synchronized.initializeServerKey in interface BootstrapManagerpublic int getServerKey()
BootstrapManagerBambooEntityOids of this Bamboo instance.getServerKey in interface BootstrapManagerpublic void setServerKey(int serverKey)
BootstrapManagerBambooEntityOids for this Bamboo instance.setServerKey in interface BootstrapManagerserverKey - server key of this instance@NotNull public ServerFingerprint getFingerprint()
getFingerprint in interface BootstrapManagerCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.