Class AbstractRepeatableTask

    • Field Detail

      • bandanaManager

        @Autowired
        protected com.atlassian.bandana.BandanaManager bandanaManager
    • Constructor Detail

      • AbstractRepeatableTask

        public AbstractRepeatableTask​(@NotNull
                                      @NotNull String buildNumber,
                                      @NotNull
                                      @NotNull String shortDescription)
    • Method Detail

      • doRepeatableTask

        protected abstract void doRepeatableTask()
                                          throws Exception
        Throws:
        Exception
      • getRunOnlyOnceId

        @Nullable
        protected @Nullable String getRunOnlyOnceId()
        Unique key of the task, used to run the task just once.
      • hasBeenRun

        protected boolean hasBeenRun()
      • needsUpgrade

        protected boolean needsUpgrade()
      • doUpgrade

        public void doUpgrade()
                       throws Exception
        Description copied from interface: UpgradeTask
        Perform the upgrade.
        Throws:
        Exception - to signalize error during upgrade process