public class DefaultBootstrapManager extends com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager implements BootstrapManager
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFACTS_DIR |
protected BambooSharedProperties |
bambooSharedProperties |
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.
|
BambooSharedProperties |
getBambooSharedProperties()
Shared home properties (bamboo-shared.cfg.xml)
|
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) |
@NotNull ServerFingerprint |
getFingerprint() |
String |
getH2VersionFromConfig() |
String |
getLocalHomePath()
Local home directory;
|
String |
getRepositoryLogsDirectory() |
String |
getServerID() |
int |
getServerKey()
Returns server key used for
BambooEntityOids of this Bamboo instance. |
String |
getSharedHomePath()
Shared home directory;
|
boolean |
initializeBuildNumberIfRequired() |
protected boolean |
initializeBuildNumberIfRequired(@NotNull Supplier<String> currentBuildNumberSupplier) |
boolean |
initializeServerKey()
Initializes server key used for
BambooEntityOids of this Bamboo instance based on server ID. |
protected boolean |
performPersistenceUpgrade() |
protected void |
postBootstrapDatabase() |
void |
publishConfiguration() |
boolean |
resetH2Version() |
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 |
setH2Version(String h2Version) |
void |
setRepositoryLogsDirectory(@NotNull 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, waitgetIndexDirectorybootstrapDatabase, 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 BambooSharedProperties bambooSharedProperties
protected void afterConfigurationLoaded()
throws com.atlassian.config.ConfigurationException
afterConfigurationLoaded in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManagercom.atlassian.config.ConfigurationExceptionpublic boolean initializeBuildNumberIfRequired()
throws com.atlassian.config.ConfigurationException
initializeBuildNumberIfRequired in interface BootstrapManagercom.atlassian.config.ConfigurationExceptionprotected boolean initializeBuildNumberIfRequired(@NotNull
@NotNull Supplier<String> currentBuildNumberSupplier)
throws com.atlassian.config.ConfigurationException
com.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 BootstrapManagerpublic String getBuildDirectory()
BootstrapManagergetBuildDirectory in interface BootstrapManagerpublic void setBuildDirectory(String buildDirectory)
setBuildDirectory in interface BootstrapManagerpublic String getRepositoryLogsDirectory()
getRepositoryLogsDirectory in interface BootstrapManagerpublic void setRepositoryLogsDirectory(@NotNull
@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 @NotNull ServerFingerprint getFingerprint()
getFingerprint in interface BootstrapManagerpublic String getH2VersionFromConfig()
getH2VersionFromConfig in interface BootstrapManagerpublic boolean resetH2Version()
resetH2Version in interface BootstrapManagerpublic void setH2Version(String h2Version) throws com.atlassian.config.ConfigurationException
setH2Version in interface BootstrapManagercom.atlassian.config.ConfigurationExceptionpublic String getLocalHomePath()
BootstrapManagergetLocalHomePath in interface BootstrapManagerpublic String getSharedHomePath()
BootstrapManagergetSharedHomePath in interface BootstrapManagerpublic BambooSharedProperties getBambooSharedProperties()
BootstrapManagergetBambooSharedProperties in interface BootstrapManagerCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.