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
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSchedule()Deprecated.Deprecated.UseSchedule(TimeZone,Locale)instead.Deprecated.UseSchedule(ZoneId)instead -
Method Summary
Modifier and TypeMethodDescriptiongetInterval(Item item) Deprecated.Supported only if constructed bySchedule(TimeZone, Locale).ItemField<?>getRunParent(Class<P> parentClass) PartOf<?>booleanDeprecated.Supported only if constructed bySchedule(TimeZone, Locale).voidonMount()Here you can do additional initialization not yet done in the constructor.<P extends Item & Scheduleable>
intrun(Class<P> parentClass, Interrupter interrupter) Deprecated.Userun(Class,JobContext)instead.<P extends Item & Scheduleable>
voidrun(Class<P> parentClass, JobContext ctx) voidsetEnabled(Item item, boolean enabled) voidsetInterval(Item item, Schedule.Interval interval) 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, registerSourceMethods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Constructor Details
-
Schedule
-
Schedule
Deprecated.UseSchedule(ZoneId)instead- Parameters:
locale- specifies the locale used for creating theGregorianCalendarthat does all the date computations. Is important for specifying the first day of week (Monday vs. Sunday)
-
Schedule
Deprecated.UseSchedule(TimeZone,Locale)instead. -
Schedule
Deprecated.UseSchedule(TimeZone,Locale)instead.
-
-
Method Details
-
getZoneId
-
getTimeZone
-
onMount
public void onMount()Description copied from class:PatternHere 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
-
getInterval
-
getRunParent
-
getRunParent
-
getRunInterval
-
getRunRuns
-
getRunFrom
-
getRunUntil
-
getRunRun
-
getRunProgress
-
getRunElapsed
-
getRunType
-
isEnabled
-
setEnabled
-
getInterval
-
setInterval
-
run
public <P extends Item & Scheduleable> void run(@Nonnull Class<P> parentClass, @Nonnull JobContext ctx) -
getLocale
Deprecated.Supported only if constructed bySchedule(TimeZone, Locale).- Throws:
IllegalStateException- if not supported
-
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.
-
Schedule(TimeZone,Locale)instead.