Package org.graylog.scheduler
Class JobTriggerUpdate
java.lang.Object
org.graylog.scheduler.JobTriggerUpdate
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JobTriggerUpdate.Builder
builder()
abstract Optional<JobTriggerData>
data()
abstract Optional<org.joda.time.DateTime>
nextTime()
abstract Optional<JobTriggerStatus>
status()
abstract JobTriggerUpdate.Builder
static JobTriggerUpdate
withError
(JobTriggerDto trigger) static JobTriggerUpdate
withNextTime
(org.joda.time.DateTime nextTime) static JobTriggerUpdate
withNextTimeAndData
(org.joda.time.DateTime nextTime, JobTriggerData data) static JobTriggerUpdate
Create job trigger update without next time.static JobTriggerUpdate
-
Constructor Details
-
JobTriggerUpdate
public JobTriggerUpdate()
-
-
Method Details
-
nextTime
-
data
-
status
-
withNextTime
-
withoutNextTime
Create job trigger update without next time. That means the trigger will not be scheduled anymore and will be marked asJobTriggerStatus.COMPLETE
.- Returns:
- the job trigger update object
-
withError
-
withStatusAndNoNextTime
-
withNextTimeAndData
public static JobTriggerUpdate withNextTimeAndData(org.joda.time.DateTime nextTime, JobTriggerData data) -
builder
-
toBuilder
-