Package com.exedio.cope.pattern
Class Schedule
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.Pattern
-
- com.exedio.cope.pattern.Schedule
-
- All Implemented Interfaces:
Serializable
public final class Schedule extends Pattern
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Schedule.Interval
static class
Schedule.Run
-
Constructor Summary
Constructors Constructor Description Schedule()
Deprecated.UseSchedule(TimeZone,Locale)
instead.Schedule(ZoneId zoneId)
Schedule(Locale locale)
Deprecated.UseSchedule(TimeZone,Locale)
instead.Schedule(TimeZone timeZone, Locale locale)
Deprecated.UseSchedule(ZoneId)
instead
-
Method Summary
-
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, registerSource
-
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
-
-
-
Constructor Detail
-
Schedule
public Schedule(ZoneId zoneId)
-
Schedule
@Deprecated public Schedule(TimeZone timeZone, Locale locale)
Deprecated.UseSchedule(ZoneId)
instead- Parameters:
locale
- specifies the locale used for creating theGregorianCalendar
that does all the date computations. Is important for specifying the first day of week (Monday vs. Sunday)
-
Schedule
@Deprecated public Schedule()
Deprecated.UseSchedule(TimeZone,Locale)
instead.
-
Schedule
@Deprecated public Schedule(Locale locale)
Deprecated.UseSchedule(TimeZone,Locale)
instead.
-
-
Method Detail
-
getZoneId
public ZoneId getZoneId()
-
getTimeZone
public TimeZone getTimeZone()
-
onMount
public void onMount()
Description copied from class:Pattern
Here you can do additional initialization not yet done in the constructor. In this method you can call methodsPattern.getType()
andFeature.getName()
for the first time.
-
getEnabled
public BooleanField getEnabled()
-
getInterval
public EnumField<Schedule.Interval> getInterval()
-
getRunParent
@Nonnull public <P extends Item> ItemField<P> getRunParent(@Nonnull Class<P> parentClass)
-
getRunParent
public ItemField<?> getRunParent()
-
getRunInterval
public EnumField<Schedule.Interval> getRunInterval()
-
getRunRuns
public PartOf<?> getRunRuns()
-
getRunFrom
public DateField getRunFrom()
-
getRunUntil
public DateField getRunUntil()
-
getRunRun
public DateField getRunRun()
-
getRunProgress
public IntegerField getRunProgress()
-
getRunElapsed
public LongField getRunElapsed()
-
getRunType
public Type<Schedule.Run> getRunType()
-
getInterval
@Nonnull public Schedule.Interval getInterval(@Nonnull Item item)
-
setInterval
public void setInterval(@Nonnull Item item, @Nonnull Schedule.Interval interval)
-
run
public <P extends Item & Scheduleable> void run(@Nonnull Class<P> parentClass, @Nonnull JobContext ctx)
-
getLocale
@Deprecated public Locale getLocale()
Deprecated.Supported only if constructed bySchedule(TimeZone, Locale)
.- Throws:
IllegalStateException
- if not supported
-
newGregorianCalendar
@Deprecated public GregorianCalendar newGregorianCalendar()
Deprecated.Supported only if constructed bySchedule(TimeZone, Locale)
.- Throws:
IllegalStateException
- if not supported
-
run
@Deprecated public <P extends Item & Scheduleable> int run(@Nonnull Class<P> parentClass, @Nullable Interrupter interrupter)
Deprecated.Userun(Class,JobContext)
instead.
-
-