Package com.netflix.genie.web.tasks
Class GenieTask
- java.lang.Object
-
- com.netflix.genie.web.tasks.GenieTask
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
LeaderTask
public abstract class GenieTask extends java.lang.Object implements java.lang.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 GenieTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.long
getFixedRate()
Get how long the system should wait between invoking the run() method of this task in milliseconds.abstract GenieTaskScheduleType
getScheduleType()
Get the type of scheduling mechanism which should be used to schedule this task.org.springframework.scheduling.Trigger
getTrigger()
Get the Trigger which this task should be scheduled with.
-
-
-
Method Detail
-
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
-
-