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.AtlassianBootstrapManagerA Bamboo specialisation of the genericAtlassianBootstrapManager.
-
-
Field Summary
Fields Modifier and Type Field Description static StringINSTANCE_FINGERPRINT_PARAMstatic StringSERVER_FINGERPRINT_PARAM
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StringgetArtifactsDirectory()This method returns the root directory underneath which the artifacts are stored.BambooSharedPropertiesgetBambooSharedProperties()Shared home properties (bamboo-shared.cfg.xml)URIgetBrokerClientURI()URIgetBrokerURI()StringgetBuildDirectory()Gets the directory where Bamboo's build files sit.StringgetBuildWorkingDirectory()This method returns the root directory underneath which the build directories are located.StringgetConfigDirectory()Gets the directory where Bamboo's administration.xml file sits@NotNull ServerFingerprintgetFingerprint()StringgetH2VersionFromConfig()default @Nullable FilegetIndexDirectory()Deprecated.since 8.2 there's no index, returns nullStringgetLocalHomePath()Local home directory;StringgetRepositoryLogsDirectory()StringgetServerID()intgetServerKey()Returns server key used forBambooEntityOids of this Bamboo instance.StringgetSharedHomePath()Shared home directory;booleaninitializeBuildNumberIfRequired()booleaninitializeServerKey()Initializes server key used forBambooEntityOids of this Bamboo instance based onserver ID.booleanresetH2Version()voidsetArtifactsDirectory(String artifactsDir)voidsetBrokerClientURI(URI brokerURI)voidsetBrokerURI(URI brokerUrl)voidsetBuildDirectory(String buildDirectory)voidsetBuildWorkingDirectory(String buildWorkingDirectory)voidsetConfigDirectory(String configurationDirectory)voidsetH2Version(String h2Version)voidsetRepositoryLogsDirectory(String repositoryLogsDirectory)voidsetServerID(String serverId)voidsetServerKey(int serverKey)Set server key used forBambooEntityOids 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 Detail
-
SERVER_FINGERPRINT_PARAM
static final String SERVER_FINGERPRINT_PARAM
- See Also:
- Constant Field Values
-
INSTANCE_FINGERPRINT_PARAM
static final String INSTANCE_FINGERPRINT_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void setConfigDirectory(String configurationDirectory)
-
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
void setBuildDirectory(String buildDirectory)
-
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
void setBuildWorkingDirectory(String buildWorkingDirectory)
-
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
void setArtifactsDirectory(String artifactsDir)
-
getRepositoryLogsDirectory
String getRepositoryLogsDirectory()
- Returns:
- the root directory underneath which the repositories logs directories are located.
-
setRepositoryLogsDirectory
void setRepositoryLogsDirectory(String repositoryLogsDirectory)
-
getIndexDirectory
@Deprecated @Nullable default @Nullable File getIndexDirectory()
Deprecated.since 8.2 there's no index, returns null
-
getServerID
String getServerID()
-
setServerID
void setServerID(String serverId)
-
initializeServerKey
boolean initializeServerKey()
Initializes server key used forBambooEntityOids 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 IDhas not been set yet.
-
getServerKey
int getServerKey()
Returns server key used forBambooEntityOids 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 forBambooEntityOids for this Bamboo instance.- Parameters:
serverKey- server key of this instance- Throws:
IllegalArgumentException- if the value is incorrect (e.g. is negative)
-
getBrokerURI
URI getBrokerURI() throws URISyntaxException
- Throws:
URISyntaxException
-
setBrokerURI
void setBrokerURI(URI brokerUrl)
-
getBrokerClientURI
URI getBrokerClientURI() throws URISyntaxException
- Throws:
URISyntaxException
-
setBrokerClientURI
void setBrokerClientURI(URI brokerURI)
-
getFingerprint
@NotNull @NotNull ServerFingerprint getFingerprint()
- Returns:
- a unique identifier for this startup
-
getH2VersionFromConfig
String getH2VersionFromConfig()
-
resetH2Version
boolean resetH2Version()
-
setH2Version
void setH2Version(String h2Version) throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
-
getLocalHomePath
String getLocalHomePath()
Local home directory;
-
getSharedHomePath
String getSharedHomePath()
Shared home directory;
-
getBambooSharedProperties
BambooSharedProperties getBambooSharedProperties()
Shared home properties (bamboo-shared.cfg.xml)- Returns:
- BambooSharedProperties
-
-