Package io.hekate.election
Interface CandidateJmx
-
@MXBean @JmxTypeName("Candidate") public interface CandidateJmx
JMX interface forCandidate
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCandidateType()
Returns the class name ofCandidateConfig.setCandidate(Candidate)
.String
getGroup()
Returns the value ofCandidateConfig.setGroup(String)
.ClusterNodeJmx
getLeaderNode()
Returns the leader node ornull
if leader is not elected yet.boolean
isLeader()
Returnstrue
if local node is the leader of this group.
-
-
-
Method Detail
-
getGroup
String getGroup()
Returns the value ofCandidateConfig.setGroup(String)
.- Returns:
- Value of
CandidateConfig.setGroup(String)
.
-
getCandidateType
String getCandidateType()
Returns the class name ofCandidateConfig.setCandidate(Candidate)
.- Returns:
- Class name of
CandidateConfig.setCandidate(Candidate)
.
-
isLeader
boolean isLeader()
Returnstrue
if local node is the leader of this group.- Returns:
true
if local node is the leader of this group.
-
getLeaderNode
ClusterNodeJmx getLeaderNode()
Returns the leader node ornull
if leader is not elected yet.- Returns:
- Leader node or
null
if leader is not elected yet.
-
-