Class GenieTask

java.lang.Object
com.netflix.genie.web.tasks.GenieTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
LeaderTask

public abstract class GenieTask extends Object implements Runnable
Interface for any task that should run in the Genie system. Will be extended by more specific interfaces.
Since:
3.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get how long the system should wait between invoking the run() method of this task in milliseconds after the last successful run of the task.
    long
    Get how long the system should wait between invoking the run() method of this task in milliseconds.
    Get the type of scheduling mechanism which should be used to schedule this task.
    org.springframework.scheduling.Trigger
    Get the Trigger which this task should be scheduled with.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Runnable

    run
  • Constructor Details

    • GenieTask

      public GenieTask()
  • Method Details

    • getScheduleType

      public abstract GenieTaskScheduleType getScheduleType()
      Get the type of scheduling mechanism which should be used to schedule this task.
      Returns:
      The schedule type
    • getTrigger

      public org.springframework.scheduling.Trigger getTrigger()
      Get the Trigger which this task should be scheduled with.
      Returns:
      The trigger
    • getFixedRate

      public long getFixedRate()
      Get how long the system should wait between invoking the run() method of this task in milliseconds.
      Returns:
      The period to wait between invocations of run for this task
    • getFixedDelay

      public long getFixedDelay()
      Get how long the system should wait between invoking the run() method of this task in milliseconds after the last successful run of the task.
      Returns:
      The time to delay between task completions