com.atlassian.scheduler.quartz2
Class Quartz2JobDetailsFactory

java.lang.Object
  extended by com.atlassian.scheduler.core.status.AbstractJobDetailsFactory<org.quartz.Trigger>
      extended by com.atlassian.scheduler.quartz2.Quartz2JobDetailsFactory

public class Quartz2JobDetailsFactory
extends AbstractJobDetailsFactory<org.quartz.Trigger>

Creates JobDetails objects out of Quartz 2.x Triggers.

Since:
v1.0

Method Summary
protected  JobRunnerKey getJobRunnerKey(org.quartz.Trigger trigger)
          Provided by the scheduler implementation to extract the job's JobRunnerKey from the scheduler's internal representation of the job.
protected  Date getNextRunTime(org.quartz.Trigger trigger)
          Provided by the scheduler implementation to extract the job's next scheduled run time from the scheduler's internal representation of the job.
protected  Schedule getSchedule(org.quartz.Trigger trigger)
          Provided by the scheduler implementation to extract the job's Schedule from the scheduler's internal representation of the job.
protected  byte[] getSerializedParameters(org.quartz.Trigger trigger)
          Provided by the scheduler implementation to extract the job's parameters map (in serialized form) from the scheduler's internal representation of the job.
 
Methods inherited from class com.atlassian.scheduler.core.status.AbstractJobDetailsFactory
buildJobDetails
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJobRunnerKey

@Nonnull
protected JobRunnerKey getJobRunnerKey(@Nonnull
                                               org.quartz.Trigger trigger)
Description copied from class: AbstractJobDetailsFactory
Provided by the scheduler implementation to extract the job's JobRunnerKey from the scheduler's internal representation of the job.

Specified by:
getJobRunnerKey in class AbstractJobDetailsFactory<org.quartz.Trigger>
Parameters:
trigger - the scheduler's internal representation of the job
Returns:
the key for the job's target job runner

getSchedule

@Nonnull
protected Schedule getSchedule(@Nonnull
                                       org.quartz.Trigger trigger)
Description copied from class: AbstractJobDetailsFactory
Provided by the scheduler implementation to extract the job's Schedule from the scheduler's internal representation of the job.

Specified by:
getSchedule in class AbstractJobDetailsFactory<org.quartz.Trigger>
Parameters:
trigger - the scheduler's internal representation of the job
Returns:
the job's corresponding Schedule

getSerializedParameters

@Nullable
protected byte[] getSerializedParameters(@Nonnull
                                                  org.quartz.Trigger trigger)
Description copied from class: AbstractJobDetailsFactory
Provided by the scheduler implementation to extract the job's parameters map (in serialized form) from the scheduler's internal representation of the job.

Specified by:
getSerializedParameters in class AbstractJobDetailsFactory<org.quartz.Trigger>
Parameters:
trigger - the scheduler's internal representation of the job
Returns:
a byte array containing the parameters map in serialized form; may be null, in which case an empty map will be substituted

getNextRunTime

@Nullable
protected Date getNextRunTime(@Nonnull
                                       org.quartz.Trigger trigger)
Description copied from class: AbstractJobDetailsFactory
Provided by the scheduler implementation to extract the job's next scheduled run time from the scheduler's internal representation of the job.

Specified by:
getNextRunTime in class AbstractJobDetailsFactory<org.quartz.Trigger>
Parameters:
trigger - the scheduler's internal representation of the job
Returns:
the job's next expected run time; may be null if the job will not be run again or if the scheduler does not provide information about future run times


Copyright © 2014 Atlassian. All Rights Reserved.