Interface TaskResult
- All Superinterfaces:
LogfileProvider
Interface representing a task execution result.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the comment set in theScheduleContext
.int
Returns the number of errors occured during task execution.int
Returns the number of fatal errors occured during task execution.@Nullable Date
The date execution of this task has been finished ornull
if the excecution has not yet finished.@Nullable Date
The date execution of this task has been started ornull
if the excecution has not yet started.getState()
The execution state of thisScheduleEntry
.getTask()
The executedScheduleTask
.int
Returns the number of warnings occured during task execution.boolean
true
if execution of this task has been finished.Methods inherited from interface de.espirit.firstspirit.access.schedule.LogfileProvider
getLogfile, getLogfileSize
-
Method Details
-
isFinished
boolean isFinished()true
if execution of this task has been finished.- Returns:
true
if execution of this task has been finished.- Since:
- 4.0
-
getStartTime
The date execution of this task has been started ornull
if 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 ornull
if 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
-