Class DBBackedBuildCounters

    • Constructor Detail

      • DBBackedBuildCounters

        public DBBackedBuildCounters​(@NotNull
                                     SQLRunnerEx sqlRunner)
    • Method Detail

      • getCounterAndIncrement

        public long getCounterAndIncrement​(@NotNull
                                           SBuildType buildType)
      • setCounter

        public void setCounter​(@NotNull
                               SBuildType buildType,
                               long newCounter)
      • getCounter

        public long getCounter​(@NotNull
                               SBuildType buildType)
      • afterCleanup

        public void afterCleanup​(@NotNull
                                 CleanupProcessState cleanupState)
        Description copied from interface: AfterBuildsCleanupExtension
        Invoked upon finishing of the main cleanup process. At this point all data for specific builds is deleted.
        Note: This extension might not be called for every cleanup run as cleanup process can be interrupted earlier. Extension must check cleanup process state and if it is interrupted, complete its operations and return as quick as possible.
        Specified by:
        afterCleanup in interface AfterBuildsCleanupExtension
        Parameters:
        cleanupState - cleanup process state