com.atlassian.bamboo.upgrade
Class AbstractBootstrapUpgradeTask

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.AbstractUpgradeTask
      extended by com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
All Implemented Interfaces:
BootstrapUpgradeTask, UpgradeTask
Direct Known Subclasses:
AbstractPhase1MoveAdminConfigToDatabaseUpgradeTask, AddFailoverParamsClientBrokerUrlUpgradeTask, BootstrapUpgradeTask3303UsePositiveFlagInGlobalBuildExpiryConfig, BootstrapUpgradeTask4204DeleteIndexDirectory, BranchKeyStartsWithMastersChainKey, BuildNumberApplicableForUpgrade, PlanKeysCorrectlyFormatted, ResetBrokerUrlUpgradeTask, ThereIsSingleRowInHibernateUniqueKeyTable, UpgradeTask4101InitialiseAdminConfigForXsrf, UpgradeTask4300MakeSureThereIsSingleRowInHibernateUniqueKeyTable, UpgradeTask4403MoveSpotInstancesConfigurationToBandanaPhase1, UpgradeTask4406EnableTestQuarantineByDefault, UpgradeTask4409UpdateBuildExpirySettingsForOnDemand, UpgradeTask5706RenameElasticIpManagement, UpgradeTask5707RemoveUnconfigurableFeatureDefaults, UpgradeTask5708RemoveSpotInstancesConfigurationFromAdministrationConfiguration, UpgradeTask5713PrepareExpiryConfigurationForNewDeploymentExpiry, UpgradeTask5801ImproveDeploymentExpiryConfigSerialization, UpgradeTask5858IncreaseCrowdSessionValidationInterval, UpgradeTask5859RemoveDuplicateNotifications, UpgradeTask5860UpdateHibernateDialect, UpgradeTask5861DeleteOrphanedPlanVcsRevisionHistoryItems, UpgradeTask5901UpdateQuarantineSettingsStructureInAdminConfig, UpgradeTask5903MoveArtifactHandlerConfigToBandanaPhase1, UpgradeTask5909CreateStorageLimitsSetting, UpgradeTask5910RemoveInvalidTrustedAppData, UpgradeTask5913CleanupTemporaryArtifactStorage

public abstract class AbstractBootstrapUpgradeTask
extends AbstractUpgradeTask
implements BootstrapUpgradeTask


Field Summary
protected  com.atlassian.config.ApplicationConfig applicationConfig
           
protected  BootstrapManager bootstrapManager
           
protected  com.atlassian.config.db.HibernateConfig hibernateConfig
           
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
 
Constructor Summary
protected AbstractBootstrapUpgradeTask(String shortDescription)
           
protected AbstractBootstrapUpgradeTask(String buildNumber, String shortDescription)
           
 
Method Summary
protected  String getApplicationBuildNumber()
           
protected  Connection getDatabaseConnection()
           
protected  org.hibernate.dialect.Dialect getDialect()
           
 void setApplicationConfig(com.atlassian.config.ApplicationConfig applicationConfig)
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
           
protected  void withDatabaseConnection(BambooConnectionCallback connectionCallback)
           
 
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.upgrade.UpgradeTask
doUpgrade, getBuildNumber, getErrors, getShortDescription
 

Field Detail

bootstrapManager

protected BootstrapManager bootstrapManager

applicationConfig

protected com.atlassian.config.ApplicationConfig applicationConfig

hibernateConfig

protected com.atlassian.config.db.HibernateConfig hibernateConfig
Constructor Detail

AbstractBootstrapUpgradeTask

protected AbstractBootstrapUpgradeTask(@NotNull
                                       String shortDescription)

AbstractBootstrapUpgradeTask

protected AbstractBootstrapUpgradeTask(@NotNull
                                       String buildNumber,
                                       @NotNull
                                       String shortDescription)
Method Detail

getDatabaseConnection

protected Connection getDatabaseConnection()
                                    throws org.hibernate.HibernateException,
                                           SQLException
Throws:
org.hibernate.HibernateException
SQLException

getDialect

@Nullable
protected org.hibernate.dialect.Dialect getDialect()

withDatabaseConnection

protected void withDatabaseConnection(BambooConnectionCallback connectionCallback)
                               throws org.hibernate.HibernateException,
                                      SQLException
Throws:
org.hibernate.HibernateException
SQLException

getApplicationBuildNumber

@NotNull
protected String getApplicationBuildNumber()

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

setApplicationConfig

public void setApplicationConfig(com.atlassian.config.ApplicationConfig applicationConfig)

setHibernateConfig

public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.