Class LeaderElectionBean
java.lang.Object
org.apache.zookeeper.server.quorum.LeaderElectionBean
- All Implemented Interfaces:
ZKMBeanInfo
,LeaderElectionMXBean
Leader election MBean interface implementation
-
Constructor Details
-
LeaderElectionBean
public LeaderElectionBean()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceZKMBeanInfo
- Returns:
- a string identifying the MBean
-
isHidden
public boolean isHidden()Description copied from interface:ZKMBeanInfo
If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools. Used for grouping MBeans.- Specified by:
isHidden
in interfaceZKMBeanInfo
- Returns:
- true if the MBean is hidden.
-
getStartTime
- Specified by:
getStartTime
in interfaceLeaderElectionMXBean
- Returns:
- the time when the leader election started
-