Package com.atlassian.bamboo.setup
Interface BootstrapManager
- All Superinterfaces:
com.atlassian.config.bootstrap.AtlassianBootstrapManager
- All Known Implementing Classes:
DefaultBootstrapManager
,MockBootstrapManager
,TestBootstrapManager
public interface BootstrapManager
extends com.atlassian.config.bootstrap.AtlassianBootstrapManager
A Bamboo specialisation of the generic
AtlassianBootstrapManager
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the root directory underneath which the artifacts are stored.Shared home properties (bamboo-shared.cfg.xml)Gets the directory where Bamboo's build files sit.This method returns the root directory underneath which the build directories are located.Gets the directory where Bamboo's administration.xml file sits@NotNull ServerFingerprint
Local home directory;int
Returns server key used forBambooEntityOid
s of this Bamboo instance.Shared home directory;boolean
boolean
Initializes server key used forBambooEntityOid
s of this Bamboo instance based onserver ID
.boolean
void
setArtifactsDirectory
(String artifactsDir) void
setBrokerClientURI
(URI brokerURI) void
setBrokerURI
(URI brokerUrl) void
setBuildDirectory
(String buildDirectory) void
setBuildWorkingDirectory
(String buildWorkingDirectory) void
setConfigDirectory
(String configurationDirectory) void
setH2Version
(String h2Version) void
setRepositoryLogsDirectory
(String repositoryLogsDirectory) void
setServerID
(String serverId) void
setServerKey
(int serverKey) Set server key used forBambooEntityOid
s for this Bamboo instance.Methods inherited from interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
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, publishConfiguration, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete
-
Field Details
-
SERVER_FINGERPRINT_PARAM
- See Also:
-
INSTANCE_FINGERPRINT_PARAM
- See Also:
-
-
Method Details
-
initializeBuildNumberIfRequired
boolean initializeBuildNumberIfRequired() throws com.atlassian.config.ConfigurationException- Throws:
com.atlassian.config.ConfigurationException
-
getConfigDirectory
String getConfigDirectory()Gets the directory where Bamboo's administration.xml file sits- Returns:
- String representing the path to the folder. Null if not configured
-
setConfigDirectory
-
getBuildDirectory
String getBuildDirectory()Gets the directory where Bamboo's build files sit. This includes artifacts and the like- Returns:
- String representing the path to the folder. Null if not configured
-
setBuildDirectory
-
getBuildWorkingDirectory
String getBuildWorkingDirectory()This method returns the root directory underneath which the build directories are located. The structure below this directory is not documented - you most likely do not want to use this method, consider using DefaultBuildDirectoryManager methods instead. -
setBuildWorkingDirectory
-
getArtifactsDirectory
String getArtifactsDirectory()This method returns the root directory underneath which the artifacts are stored. The structure below this directory is not documented - you most likely do not want to use this method, consider using com.atlassian.bamboo.fileserver.SystemDirectory methods instead. -
setArtifactsDirectory
-
getRepositoryLogsDirectory
String getRepositoryLogsDirectory()- Returns:
- the root directory underneath which the repositories logs directories are located.
-
setRepositoryLogsDirectory
-
getServerID
String getServerID() -
setServerID
-
initializeServerKey
boolean initializeServerKey()Initializes server key used forBambooEntityOid
s of this Bamboo instance based onserver ID
. Does nothing if the server key is already configured. This method should be externally synchronized.- Returns:
- true if server key has been initialized, false otherwise
- Throws:
IllegalStateException
- if the value is not configured and can't be generated, e.g. theserver ID
has not been set yet.
-
getServerKey
int getServerKey()Returns server key used forBambooEntityOid
s of this Bamboo instance.- Throws:
IllegalStateException
- if the value is not configured for this Bamboo instance or is invalid
-
setServerKey
void setServerKey(int serverKey) Set server key used forBambooEntityOid
s for this Bamboo instance.- Parameters:
serverKey
- server key of this instance- Throws:
IllegalArgumentException
- if the value is incorrect (e.g. is negative)
-
getBrokerURI
- Throws:
URISyntaxException
-
setBrokerURI
-
getBrokerClientURI
- Throws:
URISyntaxException
-
setBrokerClientURI
-
getFingerprint
- Returns:
- a unique identifier for this startup
-
getH2VersionFromConfig
String getH2VersionFromConfig() -
resetH2Version
boolean resetH2Version() -
setH2Version
- Throws:
com.atlassian.config.ConfigurationException
-
getLocalHomePath
String getLocalHomePath()Local home directory;
-