Interface TaskResult

All Superinterfaces:
LogfileProvider

public interface TaskResult extends LogfileProvider
Interface representing a task execution result.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the comment set in the ScheduleContext.
    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 or null if the excecution has not yet finished.
    @Nullable Date
    The date execution of this task has been started or null if the excecution has not yet started.
    The execution state of this ScheduleEntry.
    The executed ScheduleTask.
    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

      @Nullable @Nullable Date getStartTime()
      The date execution of this task has been started or null if the excecution has not yet started.
      Returns:
      The date execution of this task has been started.
      Since:
      4.0
    • getFinishTime

      @Nullable @Nullable Date getFinishTime()
      The date execution of this task has been finished or null 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 the ScheduleContext.
      Returns:
      The comment set in the ScheduleContext.
      Since:
      4.0
    • getState

      RunState getState()
      The execution state of this ScheduleEntry.
      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 executed ScheduleTask.
      Returns:
      The executed ScheduleTask.
      Since:
      4.0