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
- Since:
- 5.10
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.atlassian.scheduler.config.Schedule.Type
charToScheduleType
(char schedType) static SchedulerClusteredJob
fromClusterJob
(com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob) long
getJobId()
char
long
static char
scheduleTypeToChar
(com.atlassian.scheduler.config.Schedule.Type scheduleType) void
setCronExpression
(String cronExpression) void
setCronTimeZone
(String cronTimeZone) void
setIntervalFirstRunTime
(Date intervalFirstRunTime) void
setIntervalMillis
(long intervalMillis) void
void
setJobRunnerKey
(String jobRunnerKey) void
setNextRunTime
(Date nextRunTime) void
setRawParameters
(InputStream rawParameters) void
setSchedType
(char schedType) void
setVersion
(long version) com.atlassian.scheduler.caesium.spi.ClusteredJob
rawParameters can only be read once, so this method should be called only once.static com.atlassian.scheduler.config.Schedule
toSchedule
(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
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, 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)
-