Class ClusterJobDAODecorator

java.lang.Object
com.atlassian.crowd.scheduling.ClusterJobDAODecorator
All Implemented Interfaces:
com.atlassian.scheduler.caesium.spi.ClusteredJobDao

public class ClusterJobDAODecorator extends Object implements com.atlassian.scheduler.caesium.spi.ClusteredJobDao
Handles conversion between Crowd's InternalClusterJob and Caesium's ClusteredJobs.
  • Constructor Details

  • Method Details

    • getNextRunTime

      @Nullable public Date getNextRunTime(com.atlassian.scheduler.config.JobId jobId)
      Specified by:
      getNextRunTime in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • getVersion

      @Nullable public Long getVersion(com.atlassian.scheduler.config.JobId jobId)
      Specified by:
      getVersion in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • find

      @Nullable public com.atlassian.scheduler.caesium.spi.ClusteredJob find(com.atlassian.scheduler.config.JobId jobId)
      Specified by:
      find in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • findByJobRunnerKey

      @Nonnull public Collection<com.atlassian.scheduler.caesium.spi.ClusteredJob> findByJobRunnerKey(com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
      Specified by:
      findByJobRunnerKey in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • refresh

      @Nonnull public Map<com.atlassian.scheduler.config.JobId,Date> refresh()
      Specified by:
      refresh in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • findAllJobRunnerKeys

      @Nonnull public Set<com.atlassian.scheduler.config.JobRunnerKey> findAllJobRunnerKeys()
      Specified by:
      findAllJobRunnerKeys in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • create

      public boolean create(com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob)
      Specified by:
      create in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • updateNextRunTime

      public boolean updateNextRunTime(com.atlassian.scheduler.config.JobId jobId, @Nullable Date nextRunTime, long expectedVersion)
      Specified by:
      updateNextRunTime in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
    • delete

      public boolean delete(com.atlassian.scheduler.config.JobId jobId)
      Specified by:
      delete in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao