Interface StorageProvider

    • Method Detail

      • getName

        java.lang.String getName()
      • setJobMapper

        void setJobMapper​(JobMapper jobMapper)
      • setUpStorageProvider

        void setUpStorageProvider​(StorageProviderUtils.DatabaseOptions databaseOptions)
        This method allows to reinitialize the StorageProvider. It can be used if you are using Flyway or Liquibase to setup your database manually. By default, this method is automatically called on construction of the StorageProvider
        Parameters:
        databaseOptions - defines whether to set up the StorageProvider or validate whether the StorageProvider is set up correctly.
      • getLongestRunningBackgroundJobServerId

        java.util.UUID getLongestRunningBackgroundJobServerId()
      • removeTimedOutBackgroundJobServers

        int removeTimedOutBackgroundJobServers​(java.time.Instant heartbeatOlderThan)
      • getMetadata

        java.util.List<JobRunrMetadata> getMetadata​(java.lang.String name)
      • getMetadata

        JobRunrMetadata getMetadata​(java.lang.String name,
                                    java.lang.String owner)
      • deleteMetadata

        void deleteMetadata​(java.lang.String name)
      • deletePermanently

        int deletePermanently​(java.util.UUID id)
      • getJobById

        Job getJobById​(java.util.UUID id)
      • save

        java.util.List<Job> save​(java.util.List<Job> jobs)
      • getJobs

        java.util.List<Job> getJobs​(StateName state,
                                    java.time.Instant updatedBefore,
                                    PageRequest pageRequest)
      • getScheduledJobs

        java.util.List<Job> getScheduledJobs​(java.time.Instant scheduledBefore,
                                             PageRequest pageRequest)
      • deleteJobsPermanently

        int deleteJobsPermanently​(StateName state,
                                  java.time.Instant updatedBefore)
      • getDistinctJobSignatures

        java.util.Set<java.lang.String> getDistinctJobSignatures​(StateName... states)
      • recurringJobExists

        boolean recurringJobExists​(java.lang.String recurringJobId,
                                   StateName... states)
      • getRecurringJobs

        java.util.List<RecurringJob> getRecurringJobs()
      • countRecurringJobs

        long countRecurringJobs()
      • deleteRecurringJob

        int deleteRecurringJob​(java.lang.String id)
      • publishTotalAmountOfSucceededJobs

        void publishTotalAmountOfSucceededJobs​(int amount)
      • getJobById

        default Job getJobById​(JobId jobId)
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable