Package org.apache.zookeeper.server
Class DataTreeBean
java.lang.Object
org.apache.zookeeper.server.DataTreeBean
- All Implemented Interfaces:
ZKMBeanInfo
,DataTreeMXBean
This class implements the data tree MBean.
-
Constructor Details
-
DataTreeBean
-
-
Method Details
-
getNodeCount
public int getNodeCount()- Specified by:
getNodeCount
in interfaceDataTreeMXBean
- Returns:
- number of znodes in the data tree.
-
approximateDataSize
public long approximateDataSize()- Specified by:
approximateDataSize
in interfaceDataTreeMXBean
- Returns:
- data tree size in bytes. The size includes the znode path and its value.
-
countEphemerals
public int countEphemerals()- Specified by:
countEphemerals
in interfaceDataTreeMXBean
- Returns:
- number of ephemeral nodes in the data tree
-
getWatchCount
public int getWatchCount()- Specified by:
getWatchCount
in interfaceDataTreeMXBean
- Returns:
- number of watches set.
-
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.
-
getLastZxid
- Specified by:
getLastZxid
in interfaceDataTreeMXBean
- Returns:
- the most recent zxid processed by the data tree.
-