Class LeaderTask
- java.lang.Object
-
- com.netflix.genie.web.tasks.GenieTask
-
- com.netflix.genie.web.tasks.leader.LeaderTask
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
AgentJobCleanupTask
,ArchiveStatusCleanupTask
,DatabaseCleanupTask
,UserMetricsTask
public abstract class LeaderTask extends GenieTask
Interface for any task that a node elected as the leader of a Genie cluster should run.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description LeaderTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
Any cleanup that needs to be performed when this task is stopped due to leadership being revoked.-
Methods inherited from class com.netflix.genie.web.tasks.GenieTask
getFixedDelay, getFixedRate, getScheduleType, getTrigger
-
-