Package com.netflix.genie.web.tasks
Class GenieTask
java.lang.Object
com.netflix.genie.web.tasks.GenieTask
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
LeaderTask
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 -
Method Summary
Modifier and TypeMethodDescriptionlong
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.abstract GenieTaskScheduleType
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.
-
Constructor Details
-
GenieTask
public GenieTask()
-
-
Method Details
-
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
-