Class LeaderElectionBean
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.LeaderElectionBean
-
- All Implemented Interfaces:
ZKMBeanInfo,LeaderElectionMXBean
public class LeaderElectionBean extends Object implements LeaderElectionMXBean, ZKMBeanInfo
Leader election MBean interface implementation
-
-
Constructor Summary
Constructors Constructor Description LeaderElectionBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetStartTime()booleanisHidden()If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools.
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceZKMBeanInfo- Returns:
- a string identifying the MBean
-
isHidden
public boolean isHidden()
Description copied from interface:ZKMBeanInfoIf 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:
isHiddenin interfaceZKMBeanInfo- Returns:
- true if the MBean is hidden.
-
getStartTime
public String getStartTime()
- Specified by:
getStartTimein interfaceLeaderElectionMXBean- Returns:
- the time when the leader election started
-
-