Package com.netflix.genie.web.services
Interface ClusterLeaderService
- All Known Implementing Classes:
ClusterLeaderServiceCuratorImpl
,ClusterLeaderServiceLocalLeaderImpl
public interface ClusterLeaderService
Service interface for the abstracts the details of leadership within nodes in a Genie cluster.
- Since:
- 4.0.0
-
Method Summary
-
Method Details
-
stop
void stop()Stop the service (i.e. renounce leadership and leave the election). -
start
void start()Start the service (i.e. join the the election). -
isRunning
boolean isRunning()Whether or not this node is participating in the cluster leader election.- Returns:
- true if the node is participating in leader election
-
isLeader
boolean isLeader()Whether or not this node is the current cluster leader.- Returns:
- true if the node is the current cluster leader
-