Class TaskContext

java.lang.Object
org.deltava.jdbc.ConnectionContext
org.deltava.taskman.TaskContext

public class TaskContext extends ConnectionContext
The execution context for a scheduled task.
Since:
1.0
Version:
10.0
Author:
Luke
  • Constructor Details

    • TaskContext

      TaskContext()
      Initializes the task context.
  • Method Details

    • getLastRun

      public Instant getLastRun()
      Returns the date/time the Task was previously executed.
      Returns:
      the last execution date/time, or null if never
    • getUser

      public Pilot getUser()
      Returns the User the Task will be executing as.
      Returns:
      a Pilot, or null if the system
    • setLastRun

      public void setLastRun(Instant lastRun)
      Updates the date/time the Task was previously executed.
      Parameters:
      lastRun - the last execution date/time, or null if never
    • setUser

      public void setUser(Pilot usr)
      Updates the User the Task will be executing as.
      Parameters:
      usr - a Pilot, or null if the system