Package com.carfey.ops.job
Annotation Type SchedulableJob.Initializable
-
@Target(TYPE) @Documented @Retention(RUNTIME) @Repeatable(RepeatableInitializableAnnotation.class) public static @interface SchedulableJob.Initializable
Annotation to indicate a givenSchedulableJobshould be automatically initialized into Obsidian at startup. Best effort, any errors are logged and event notifications are dispatched. Nicknames are used for determining whether a job has already been initialized. Jobs must be found via classpath scanning.- Since:
- 6.3.0
- See Also:
- Classpath scanning
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanautoInterruptbooleanchainAllSchedulableJob.InitializableChainAnnotation[]chainAnnotationsjava.lang.StringcronCron pattern for initialized job.java.lang.StringcustomCalendarNamejava.lang.StringendDateOptional date following standardjava.time.ZonedDateTime#parse(CharSequence).intfailureRetriesbooleanfailureRetryExponentintfailureRetryIntervalbooleanhostPreferenceJobStatusjobStatusIfJobStatus.ENABLED, validcron()must be provided.java.lang.StringmaxExecutionDurationjava.lang.StringminExecutionDurationjava.lang.StringnicknameOptional nickname.java.lang.String[]parameterNamesIf you wish to provide parameter values, an array of names in order that aligns withparameters()andparameterTypes().java.lang.String[]parametersIf you wish to provide parameter values, an array of values in order that aligns withparameterNames()andparameterTypes().Type[]parameterTypesIf you wish to provide parameter values, an array of types in order that aligns withparameters()andparameterNames().intpickupBufferMinutesJobRecoveryTyperecoveryTypejava.lang.StringstartDateOptional date following standardjava.time.ZonedDateTime#parse(CharSequence).StartupShutdownModestartupShutdownMode
-
-
-
Element Detail
-
cron
java.lang.String cron
Cron pattern for initialized job. Supports any value that would be valid in the UI or API including recurrence expressions, schedule aliases, timezone, etc. Required forjobStatus()JobStatus.ENABLED, otherwise not applicable.- Default:
- ""
-
-
-
parameterNames
java.lang.String[] parameterNames
If you wish to provide parameter values, an array of names in order that aligns withparameters()andparameterTypes(). Repeat a name when you want to provide multiple values.- Default:
- {}
-
-
-
parameters
java.lang.String[] parameters
If you wish to provide parameter values, an array of values in order that aligns withparameterNames()andparameterTypes(). Multiples supported via repeatedparameterNames().- Default:
- {}
-
-
-
parameterTypes
Type[] parameterTypes
If you wish to provide parameter values, an array of types in order that aligns withparameters()andparameterNames().- Default:
- {}
-
-
-
startDate
java.lang.String startDate
Optional date following standardjava.time.ZonedDateTime#parse(CharSequence). Defaults to immediate scheduling.- See Also:
- ZonedDateTime.parse(CharSequence)
- Default:
- ""
-
-
-
endDate
java.lang.String endDate
Optional date following standardjava.time.ZonedDateTime#parse(CharSequence). Defaults to no end date.- See Also:
- ZonedDateTime.parse(CharSequence)
- Default:
- ""
-
-
-
recoveryType
JobRecoveryType recoveryType
- Default:
- com.carfey.ops.api.enums.JobRecoveryType.LAST
-
-
-
startupShutdownMode
StartupShutdownMode startupShutdownMode
- Default:
- com.carfey.ops.api.enums.StartupShutdownMode.NONE
-
-
-
chainAnnotations
SchedulableJob.InitializableChainAnnotation[] chainAnnotations
- Default:
- {}
-
-