Class TaskConfig

java.lang.Object
org.bgerp.app.exec.scheduler.TaskConfig
All Implemented Interfaces:
Id<String>, IdTitle<String>, Title

public class TaskConfig extends Object implements IdTitle<String>
Scheduled task configuration
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface Id<String>
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface Title
    • getMinute

      public String getMinute()
      Cron schedule minutes field.
      Returns:
      minutes field
    • getHour

      public String getHour()
      Cron schedule hours field.
      Returns:
      hours field
    • getDayOfMonth

      public String getDayOfMonth()
      Cron schedule day of month field.
      Returns:
      day of month field
    • getMonth

      public String getMonth()
      Cron schedule month field.
      Returns:
      month field
    • getDayOfWeek

      public String getDayOfWeek()
      Cron schedule day of week field.
      Returns:
      day of week field
    • isEnabled

      public boolean isEnabled()
      Whether the task is enabled.
      Returns:
      is the task enabled
    • getNotRunnableState

      public String getNotRunnableState()
      State preventing the task from running.
      Returns:
      null if the task can be run, or the state, preventing that
    • getLastRunStart

      public Date getLastRunStart()
      Last run start time.
      Returns:
      last run start time, or null if never run
    • getLastRunDuration

      public Duration getLastRunDuration()
      Last run duration.
      Returns:
      last run duration, or null if never run
    • toString

      public String toString()
      Overrides:
      toString in class Object