Class SchedulerClusteredJob
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.AnnotatedEntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJob
- All Implemented Interfaces:
Serializable,Cloneable
- Since:
- 5.10
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.atlassian.scheduler.config.Schedule.TypecharToScheduleType(char schedType) static SchedulerClusteredJobfromClusterJob(com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob) longgetJobId()charlongstatic charscheduleTypeToChar(com.atlassian.scheduler.config.Schedule.Type scheduleType) voidsetCronExpression(String cronExpression) voidsetCronTimeZone(String cronTimeZone) voidsetIntervalFirstRunTime(Date intervalFirstRunTime) voidsetIntervalMillis(long intervalMillis) voidvoidsetJobRunnerKey(String jobRunnerKey) voidsetNextRunTime(Date nextRunTime) voidsetRawParameters(InputStream rawParameters) voidsetSchedType(char schedType) voidsetVersion(long version) com.atlassian.scheduler.caesium.spi.ClusteredJobrawParameters can only be read once, so this method should be called only once.static com.atlassian.scheduler.config.ScheduletoSchedule(char schedType, String cronExpression, String cronTimeZone, Date intervalFirstRunTime, long intervalMillis) Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setLastModifierMethods inherited from class com.atlassian.confluence.core.AnnotatedEntityObject
getCreationDate, getLastModificationDateMethods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCurrentDate, getId, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Constructor Details
-
SchedulerClusteredJob
public SchedulerClusteredJob()
-
-
Method Details
-
toClusteredJob
rawParameters can only be read once, so this method should be called only once.- Throws:
IOException
-
toSchedule
-
fromClusterJob
public static SchedulerClusteredJob fromClusterJob(com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob) -
scheduleTypeToChar
public static char scheduleTypeToChar(com.atlassian.scheduler.config.Schedule.Type scheduleType) -
charToScheduleType
public static com.atlassian.scheduler.config.Schedule.Type charToScheduleType(char schedType) -
getJobId
-
setJobId
-
getNextRunTime
-
setNextRunTime
-
getVersion
public long getVersion() -
setVersion
public void setVersion(long version) -
getJobRunnerKey
-
setJobRunnerKey
-
getRawParameters
-
setRawParameters
-
getSchedType
public char getSchedType() -
setSchedType
public void setSchedType(char schedType) -
getCronExpression
-
setCronExpression
-
getCronTimeZone
-
setCronTimeZone
-
getIntervalFirstRunTime
-
setIntervalFirstRunTime
-
getIntervalMillis
public long getIntervalMillis() -
setIntervalMillis
public void setIntervalMillis(long intervalMillis)
-