Interface TaskResult
- All Superinterfaces:
LogfileProvider
Interface representing a task execution result.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the comment set in theScheduleContext.intReturns the number of errors occured during task execution.intReturns the number of fatal errors occured during task execution.@Nullable DateThe date execution of this task has been finished ornullif the excecution has not yet finished.@Nullable DateThe date execution of this task has been started ornullif the excecution has not yet started.getState()The execution state of thisScheduleEntry.getTask()The executedScheduleTask.intReturns the number of warnings occured during task execution.booleantrueif execution of this task has been finished.Methods inherited from interface de.espirit.firstspirit.access.schedule.LogfileProvider
getLogfile, getLogfileSize
-
Method Details
-
isFinished
boolean isFinished()trueif execution of this task has been finished.- Returns:
trueif execution of this task has been finished.- Since:
- 4.0
-
getStartTime
The date execution of this task has been started ornullif the excecution has not yet started.- Returns:
- The date execution of this task has been started.
- Since:
- 4.0
-
getFinishTime
The date execution of this task has been finished ornullif the excecution has not yet finished.- Returns:
- The date execution of this task has been finished.
- Since:
- 4.0
-
getComment
String getComment()Returns the comment set in theScheduleContext.- Returns:
- The comment set in the
ScheduleContext. - Since:
- 4.0
-
getState
RunState getState()The execution state of thisScheduleEntry.- Returns:
- The execution state of this
ScheduleEntry. - Since:
- 4.0
-
getFatalErrorCount
int getFatalErrorCount()Returns the number of fatal errors occured during task execution.- Returns:
- The number of fatal errors occured during task execution.
- Since:
- 4.0
-
getErrorCount
int getErrorCount()Returns the number of errors occured during task execution.- Returns:
- The number of errors occured during task execution.
- Since:
- 4.0
-
getWarningCount
int getWarningCount()Returns the number of warnings occured during task execution.- Returns:
- The number of warnings occured during task execution.
- Since:
- 4.0
-
getTask
ScheduleTask getTask()The executedScheduleTask.- Returns:
- The executed
ScheduleTask. - Since:
- 4.0
-