Class ScheduledJobInfoImpl
java.lang.Object
org.apache.sling.event.impl.jobs.scheduling.ScheduledJobInfoImpl
- All Implemented Interfaces:
Serializable
,org.apache.sling.event.jobs.ScheduledJobInfo
public class ScheduledJobInfoImpl
extends Object
implements org.apache.sling.event.jobs.ScheduledJobInfo, Serializable
The job schedule information.
It holds all required information like
- the name of the schedule
- the job topic
- the job properties
- scheduling information
- See Also:
-
Constructor Summary
ConstructorDescriptionScheduledJobInfoImpl
(JobSchedulerImpl jobScheduler, String scheduleName) Create a new info object -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the schedule nameGet the scheduler job idCollection<org.apache.sling.event.jobs.ScheduleInfo>
boolean
org.apache.sling.event.jobs.JobBuilder.ScheduleBuilder
void
resume()
void
suspend()
void
void
Update/set the job related informationvoid
Update the scheduling information
-
Constructor Details
-
ScheduledJobInfoImpl
Create a new info object- Parameters:
jobScheduler
- The job schedulerscheduleName
- The unique name
-
-
Method Details
-
update
Update/set the job related information- Parameters:
jobTopic
- The job topicjobProperties
- The job properties
-
update
Update the scheduling information- Parameters:
scheduleInfos
- The new schedule
-
getName
Get the schedule name -
getSchedules
- Specified by:
getSchedules
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.getSchedules()
-
getNextScheduledExecution
- Specified by:
getNextScheduledExecution
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.getNextScheduledExecution()
-
getJobTopic
- Specified by:
getJobTopic
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.getJobTopic()
-
getJobProperties
- Specified by:
getJobProperties
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.getJobProperties()
-
unschedule
public void unschedule()- Specified by:
unschedule
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.unschedule()
-
reschedule
public org.apache.sling.event.jobs.JobBuilder.ScheduleBuilder reschedule()- Specified by:
reschedule
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.reschedule()
-
suspend
public void suspend()- Specified by:
suspend
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.suspend()
-
resume
public void resume()- Specified by:
resume
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.resume()
-
isSuspended
public boolean isSuspended()- Specified by:
isSuspended
in interfaceorg.apache.sling.event.jobs.ScheduledJobInfo
- See Also:
-
ScheduledJobInfo.isSuspended()
-
getSchedulerJobId
Get the scheduler job id
-