|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 String |
ARTIFACTS_DIR
|
static String |
BUILD_WORKING_DIR
|
Fields inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager |
---|
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, setupPersister |
Fields inherited from interface com.atlassian.bamboo.setup.BootstrapManager |
---|
INSTANCE_FINGERPRINT_PARAM, SERVER_FINGERPRINT_PARAM |
Constructor Summary | |
---|---|
DefaultBootstrapManager()
|
Method Summary | |
---|---|
protected void |
afterConfigurationLoaded()
|
void |
bootstrapDatabase(com.atlassian.config.db.DatabaseDetails databaseDetails,
boolean b)
|
void |
bootstrapDatasource(String datasourceName,
String hibernateDialect)
|
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()
Provides a unique identifier for this startup |
int |
getHeartbeatInterval()
|
File |
getIndexDirectory()
Returns the index directory as stored in the cfg.xml file with the bambooHome preopty replaced |
String |
getServerID()
|
protected boolean |
performPersistenceUpgrade()
|
void |
publishConfiguration()
|
void |
setArtifactsDirectory(String artifactsDir)
|
void |
setBootstrapUpgradeManager(BootstrapUpgradeManager bootstrapUpgradeManager)
|
void |
setBrokerClientURI(URI brokerURI)
|
void |
setBrokerURI(URI brokerURI)
|
void |
setBuildDirectory(String buildDirectory)
|
void |
setBuildWorkingDirectory(String buildWorkingDirectory)
|
void |
setConfigDirectory(String configurationDirectory)
|
void |
setHeartbeatInterval(Integer heartbeartInterval)
|
void |
setServerID(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, 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, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete |
Field Detail |
---|
public static final String BUILD_WORKING_DIR
public static final 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 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
SystemDirectory
methods instead.
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 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
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(String datasourceName, 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 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 int getHeartbeatInterval()
public void setHeartbeatInterval(Integer heartbeartInterval)
@NotNull public ServerFingerprint getFingerprint()
BootstrapManager
getFingerprint
in interface BootstrapManager
public void setBootstrapUpgradeManager(BootstrapUpgradeManager bootstrapUpgradeManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |