|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.commons.scheduler.impl.InternalScheduleOptions
public class InternalScheduleOptions
Scheduler options provide an extensible way of defining how to schedule a job.
| Field Summary | |
|---|---|
IllegalArgumentException |
argumentException
|
boolean |
canRunConcurrently
|
Map<String,Serializable> |
configuration
|
String |
name
|
String[] |
runOn
|
org.quartz.TriggerBuilder<? extends org.quartz.Trigger> |
trigger
|
| Constructor Summary | |
|---|---|
InternalScheduleOptions(IllegalArgumentException iae)
|
|
InternalScheduleOptions(org.quartz.TriggerBuilder<? extends org.quartz.Trigger> trigger)
|
|
| Method Summary | |
|---|---|
ScheduleOptions |
canRunConcurrently(boolean flag)
Flag indicating whether the job can be run concurrently. |
ScheduleOptions |
config(Map<String,Serializable> config)
Add optional configuration for the job. |
ScheduleOptions |
name(String name)
Sets the name of the job. |
ScheduleOptions |
onInstancesOnly(String[] slingIds)
List of Sling IDs this job should be run on. |
ScheduleOptions |
onLeaderOnly(boolean flag)
Flag indicating whether the job should only be run on the leader. |
ScheduleOptions |
onSingleInstanceOnly(boolean flag)
Flag indicating whether the job should only be run on a single instance in a cluster This defaults to false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String name
public boolean canRunConcurrently
public Map<String,Serializable> configuration
public final org.quartz.TriggerBuilder<? extends org.quartz.Trigger> trigger
public final IllegalArgumentException argumentException
public String[] runOn
| Constructor Detail |
|---|
public InternalScheduleOptions(org.quartz.TriggerBuilder<? extends org.quartz.Trigger> trigger)
public InternalScheduleOptions(IllegalArgumentException iae)
| Method Detail |
|---|
public ScheduleOptions config(Map<String,Serializable> config)
ScheduleOptions
config in interface ScheduleOptionsconfig - An optional configuration object - this configuration is only passed to the job the job implements Job.ScheduleOptions.config(java.util.Map)public ScheduleOptions name(String name)
ScheduleOptions
name in interface ScheduleOptionsname - The job nameScheduleOptions.name(java.lang.String)public ScheduleOptions canRunConcurrently(boolean flag)
ScheduleOptions
canRunConcurrently in interface ScheduleOptionsflag - Whether this job can run even if previous scheduled runs are still running.ScheduleOptions.canRunConcurrently(boolean)public ScheduleOptions onLeaderOnly(boolean flag)
ScheduleOptionsScheduleOptions.onSingleInstanceOnly(boolean) or ScheduleOptions.onInstancesOnly(String[]) has been called before,
that option is reset and overwritten by the value of this method.
onLeaderOnly in interface ScheduleOptionsflag - Whether this job should only be run on the leaderScheduleOptions.onLeaderOnly(boolean)public ScheduleOptions onSingleInstanceOnly(boolean flag)
ScheduleOptionsScheduleOptions.onLeaderOnly(boolean) or ScheduleOptions.onInstancesOnly(String[]) has been called before,
that option is reset and overwritten by the value of this method.
onSingleInstanceOnly in interface ScheduleOptionsflag - Whether this job should only be run on a single instance.ScheduleOptions.onSingleInstanceOnly(boolean)public ScheduleOptions onInstancesOnly(String[] slingIds)
ScheduleOptionsScheduleOptions.onLeaderOnly(boolean) or ScheduleOptions.onSingleInstanceOnly(boolean) has been called before,
that option is reset and overwritten by the value of this method.
onInstancesOnly in interface ScheduleOptionsslingIds - Array of Sling IDs this job should run onScheduleOptions.onInstancesOnly(java.lang.String[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||