Interface UpgradeProvider

All Known Implementing Classes:
XmlFileUpgradeProvider

public interface UpgradeProvider
Component used for providing JIRA upgrade tasks.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Collection<T>
    Constructs JIRA upgrade tasks.
    <T> Collection<T>
    getUpgradeTasksBoundByBuild(long buildNumberUpperBound)
    Constructs all JIRA upgrade tasks for build numbers less than or equal to some limit.
  • Method Details

    • getUpgradeTasks

      <T> Collection<T> getUpgradeTasks()
      Constructs JIRA upgrade tasks.
      Type Parameters:
      T - is the type of the Upgrade Task as we have different types for these: UpgradeTask and com.atlassian.upgrade.api.UpgradeTask.
      Returns:
      the collection of the upgrade task.
    • getUpgradeTasksBoundByBuild

      <T> Collection<T> getUpgradeTasksBoundByBuild(long buildNumberUpperBound)
      Constructs all JIRA upgrade tasks for build numbers less than or equal to some limit. This allows us to only run upgrade tasks up to a certain point in the database's history.
      Type Parameters:
      T - is the type of the Upgrade Task as we have different types for these: UpgradeTask and com.atlassian.upgrade.api.UpgradeTask.
      Returns:
      the collection of the upgrade task.