|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager com.atlassian.bamboo.setup.DefaultBootstrapManager
public class DefaultBootstrapManager
BootstrapManager is responsible for initializing the dependencies of Bamboo environment.
Field Summary | |
---|---|
static java.lang.String |
ARTIFACTS_DIR
|
static java.lang.String |
BUILD_WORKING_DIR
|
Fields inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager |
---|
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, log, setupPersister |
Fields inherited from interface com.atlassian.bamboo.setup.BootstrapManager |
---|
FINGERPRINT_PARAM |
Constructor Summary | |
---|---|
DefaultBootstrapManager()
|
Method Summary | |
---|---|
protected void |
afterConfigurationLoaded()
|
void |
bootstrapDatabase(com.atlassian.config.db.DatabaseDetails databaseDetails,
boolean b)
|
void |
bootstrapDatasource(java.lang.String datasourceName,
java.lang.String hibernateDialect)
|
java.lang.String |
getArtifactsDirectory()
This method returns the root directory underneath which the artifacts are stored. |
java.net.URI |
getBrokerClientURI()
|
java.net.URI |
getBrokerURI()
|
java.lang.String |
getBuildDirectory()
Gets the directory where Bamboo's build files sit. |
java.lang.String |
getBuildWorkingDirectory()
This method returns the root directory underneath which the build directories are located. |
java.lang.String |
getConfigDirectory()
Gets the directory where Bamboo's administration.xml file sits |
protected java.lang.String |
getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails)
|
java.lang.String |
getFingerprint()
Provides a unique identifier for this startup |
int |
getHeartbeatInterval()
|
java.io.File |
getIndexDirectory()
Returns the index directory as stored in the cfg.xml file with the bambooHome preopty replaced |
java.lang.String |
getServerID()
|
protected boolean |
performPersistenceUpgrade()
|
void |
setArtifactsDirectory(java.lang.String artifactsDir)
|
void |
setBootstrapUpgradeManager(UpgradeManager bootstrapUpgradeManager)
|
void |
setBrokerClientURI(java.net.URI brokerURI)
|
void |
setBrokerURI(java.net.URI brokerURI)
|
void |
setBuildDirectory(java.lang.String buildDirectory)
|
void |
setBuildWorkingDirectory(java.lang.String buildWorkingDirectory)
|
void |
setConfigDirectory(java.lang.String configurationDirectory)
|
void |
setHeartbeatInterval(java.lang.Integer heartbeartInterval)
|
void |
setServerID(java.lang.String serverId)
|
Methods inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager |
---|
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, postBootstrapDatabase, publishConfiguration, removeProperty, save, setApplicationConfig, setBuildNumber, setHibernateConfig, setHibernateConfigurator, setHomeLocator, setOperation, setProperty, setSetupComplete, setSetupPersister, setTables |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.config.bootstrap.AtlassianBootstrapManager |
---|
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 |
---|
public static final java.lang.String BUILD_WORKING_DIR
public static final java.lang.String ARTIFACTS_DIR
Constructor Detail |
---|
public DefaultBootstrapManager()
Method Detail |
---|
protected void afterConfigurationLoaded() throws com.atlassian.config.ConfigurationException
afterConfigurationLoaded
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.ConfigurationException
public java.lang.String getConfigDirectory()
BootstrapManager
getConfigDirectory
in interface BootstrapManager
public void setConfigDirectory(java.lang.String configurationDirectory)
setConfigDirectory
in interface BootstrapManager
public java.lang.String getBuildWorkingDirectory()
BootstrapManager
getBuildWorkingDirectory
in interface BootstrapManager
public void setBuildWorkingDirectory(java.lang.String buildWorkingDirectory)
setBuildWorkingDirectory
in interface BootstrapManager
public void setArtifactsDirectory(java.lang.String artifactsDir)
setArtifactsDirectory
in interface BootstrapManager
public java.lang.String getArtifactsDirectory()
BootstrapManager
SystemDirectory
methods instead.
getArtifactsDirectory
in interface BootstrapManager
@Nullable public java.io.File getIndexDirectory()
BootstrapManager
getIndexDirectory
in interface BootstrapManager
public java.lang.String getBuildDirectory()
BootstrapManager
getBuildDirectory
in interface BootstrapManager
public void setBuildDirectory(java.lang.String buildDirectory)
setBuildDirectory
in interface BootstrapManager
public java.net.URI getBrokerURI() throws java.net.URISyntaxException
getBrokerURI
in interface BootstrapManager
java.net.URISyntaxException
public void setBrokerURI(java.net.URI brokerURI)
setBrokerURI
in interface BootstrapManager
public java.net.URI getBrokerClientURI() throws java.net.URISyntaxException
getBrokerClientURI
in interface BootstrapManager
java.net.URISyntaxException
public void setBrokerClientURI(java.net.URI brokerURI)
setBrokerClientURI
in interface BootstrapManager
protected boolean performPersistenceUpgrade()
performPersistenceUpgrade
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails databaseDetails, boolean b) throws com.atlassian.config.bootstrap.BootstrapException
bootstrapDatabase
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
bootstrapDatabase
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
public void bootstrapDatasource(java.lang.String datasourceName, java.lang.String hibernateDialect) throws com.atlassian.config.bootstrap.BootstrapException
bootstrapDatasource
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
bootstrapDatasource
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
protected java.lang.String getDbUrl(com.atlassian.config.db.DatabaseDetails dbDetails)
getDbUrl
in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
public java.lang.String getServerID()
getServerID
in interface BootstrapManager
public void setServerID(java.lang.String serverId)
setServerID
in interface BootstrapManager
public int getHeartbeatInterval()
public void setHeartbeatInterval(java.lang.Integer heartbeartInterval)
@NotNull public java.lang.String getFingerprint()
BootstrapManager
getFingerprint
in interface BootstrapManager
public void setBootstrapUpgradeManager(UpgradeManager bootstrapUpgradeManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |