Class TaskRunEvent
- java.lang.Object
-
- io.opensw.scheduler.core.events.obj.TaskRunEvent
-
-
Constructor Summary
Constructors Constructor Description TaskRunEvent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskRunEventcreate(Task task, java.lang.String server, java.time.Instant start, java.time.Instant end)Creates event task run eventstatic TaskRunEventcreate(Task task, java.lang.String server, java.time.Instant start, java.time.Instant end, java.lang.Exception exception)Creates event task run event
-
-
-
Method Detail
-
create
public static TaskRunEvent create(Task task, java.lang.String server, java.time.Instant start, java.time.Instant end)
Creates event task run event- Parameters:
task- is the taskserver- is the name of server where task runstart- is the start timeend- is the end time- Returns:
- instance of task run event
-
create
public static TaskRunEvent create(Task task, java.lang.String server, java.time.Instant start, java.time.Instant end, java.lang.Exception exception)
Creates event task run event- Parameters:
task- is the taskserver- is the name of server where task runstart- is the start timeend- is the end timeexception- when exception occur- Returns:
- instance of task run event
-
-