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, setupPersister
INSTANCE_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
BambooEntityOid s of this Bamboo instance. |
boolean |
initializeServerKey()
Initializes server key used for
BambooEntityOid s 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
BambooEntityOid s 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, setTables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bootstrapDatabase, 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, setSetupComplete
public 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.DefaultAtlassianBootstrapManager
com.atlassian.config.ConfigurationException
public String getConfigDirectory()
BootstrapManager
getConfigDirectory
in interface BootstrapManager
public void setConfigDirectory(String configurationDirectory)
setConfigDirectory
in interface BootstrapManager
public String getBuildWorkingDirectory()
BootstrapManager
getBuildWorkingDirectory
in interface BootstrapManager
public void setBuildWorkingDirectory(String buildWorkingDirectory)
setBuildWorkingDirectory
in interface BootstrapManager
public void setArtifactsDirectory(String artifactsDir)
setArtifactsDirectory
in interface BootstrapManager
public String getArtifactsDirectory()
BootstrapManager
getArtifactsDirectory
in interface BootstrapManager
@Nullable public File getIndexDirectory()
BootstrapManager
getIndexDirectory
in interface BootstrapManager
public String getBuildDirectory()
BootstrapManager
getBuildDirectory
in interface BootstrapManager
public void setBuildDirectory(String buildDirectory)
setBuildDirectory
in interface BootstrapManager
public String getRepositoryLogsDirectory()
getRepositoryLogsDirectory
in interface BootstrapManager
public void setRepositoryLogsDirectory(@NotNull String repositoryLogsDirectory)
setRepositoryLogsDirectory
in interface BootstrapManager
public void publishConfiguration()
publishConfiguration
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
publishConfiguration
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public URI getBrokerURI() throws URISyntaxException
getBrokerURI
in interface BootstrapManager
URISyntaxException
public void setBrokerURI(URI brokerURI)
setBrokerURI
in interface BootstrapManager
public URI getBrokerClientURI() throws URISyntaxException
getBrokerClientURI
in interface BootstrapManager
URISyntaxException
public void setBrokerClientURI(URI brokerURI)
setBrokerClientURI
in interface BootstrapManager
protected boolean performPersistenceUpgrade()
performPersistenceUpgrade
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
protected void postBootstrapDatabase() throws com.atlassian.config.bootstrap.BootstrapException
postBootstrapDatabase
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
protected String getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails)
getDbUrl
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public String getServerID()
getServerID
in interface BootstrapManager
public void setServerID(String serverId)
setServerID
in interface BootstrapManager
public boolean initializeServerKey()
BootstrapManager
BambooEntityOid
s 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 BootstrapManager
public int getServerKey()
BootstrapManager
BambooEntityOid
s of this Bamboo instance.getServerKey
in interface BootstrapManager
public void setServerKey(int serverKey)
BootstrapManager
BambooEntityOid
s for this Bamboo instance.setServerKey
in interface BootstrapManager
serverKey
- server key of this instance@NotNull public ServerFingerprint getFingerprint()
getFingerprint
in interface BootstrapManager
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.