Class SchedulerClusteredJob
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.confluence.core.ConfluenceEntityObject
-
- com.atlassian.confluence.impl.schedule.caesium.SchedulerClusteredJob
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SchedulerClusteredJob extends ConfluenceEntityObject
- Since:
- 5.10
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchedulerClusteredJob()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.atlassian.scheduler.config.Schedule.TypecharToScheduleType(char schedType)static SchedulerClusteredJobfromClusterJob(com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob)StringgetCronExpression()StringgetCronTimeZone()DategetIntervalFirstRunTime()longgetIntervalMillis()StringgetJobId()StringgetJobRunnerKey()DategetNextRunTime()InputStreamgetRawParameters()chargetSchedType()longgetVersion()static charscheduleTypeToChar(com.atlassian.scheduler.config.Schedule.Type scheduleType)voidsetCronExpression(String cronExpression)voidsetCronTimeZone(String cronTimeZone)voidsetIntervalFirstRunTime(Date intervalFirstRunTime)voidsetIntervalMillis(long intervalMillis)voidsetJobId(String jobId)voidsetJobRunnerKey(String jobRunnerKey)voidsetNextRunTime(Date nextRunTime)voidsetRawParameters(InputStream rawParameters)voidsetSchedType(char schedType)voidsetVersion(long version)com.atlassian.scheduler.caesium.spi.ClusteredJobtoClusteredJob()rawParameters 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, setCreatorName, setLastModifier, setLastModifierName
-
-
-
-
Method Detail
-
toClusteredJob
public com.atlassian.scheduler.caesium.spi.ClusteredJob toClusteredJob() throws IOExceptionrawParameters can only be read once, so this method should be called only once.- Throws:
IOException
-
toSchedule
public static com.atlassian.scheduler.config.Schedule toSchedule(char schedType, String cronExpression, String cronTimeZone, Date intervalFirstRunTime, long intervalMillis)
-
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
public String getJobId()
-
setJobId
public void setJobId(String jobId)
-
getNextRunTime
public Date getNextRunTime()
-
setNextRunTime
public void setNextRunTime(Date nextRunTime)
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
getJobRunnerKey
public String getJobRunnerKey()
-
setJobRunnerKey
public void setJobRunnerKey(String jobRunnerKey)
-
getRawParameters
public InputStream getRawParameters()
-
setRawParameters
public void setRawParameters(InputStream rawParameters)
-
getSchedType
public char getSchedType()
-
setSchedType
public void setSchedType(char schedType)
-
getCronExpression
public String getCronExpression()
-
setCronExpression
public void setCronExpression(String cronExpression)
-
getCronTimeZone
public String getCronTimeZone()
-
setCronTimeZone
public void setCronTimeZone(String cronTimeZone)
-
getIntervalFirstRunTime
public Date getIntervalFirstRunTime()
-
setIntervalFirstRunTime
public void setIntervalFirstRunTime(Date intervalFirstRunTime)
-
getIntervalMillis
public long getIntervalMillis()
-
setIntervalMillis
public void setIntervalMillis(long intervalMillis)
-
-