Package org.apache.zookeeper.server
Class DataTreeBean
- java.lang.Object
- 
- org.apache.zookeeper.server.DataTreeBean
 
- 
- All Implemented Interfaces:
- ZKMBeanInfo,- DataTreeMXBean
 
 public class DataTreeBean extends Object implements DataTreeMXBean, ZKMBeanInfo This class implements the data tree MBean.
- 
- 
Constructor SummaryConstructors Constructor Description DataTreeBean(DataTree dataTree)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longapproximateDataSize()intcountEphemerals()StringgetLastZxid()StringgetName()intgetNodeCount()intgetWatchCount()booleanisHidden()If isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools.
 
- 
- 
- 
Constructor Detail- 
DataTreeBeanpublic DataTreeBean(DataTree dataTree) 
 
- 
 - 
Method Detail- 
getNodeCountpublic int getNodeCount() - Specified by:
- getNodeCountin interface- DataTreeMXBean
- Returns:
- number of znodes in the data tree.
 
 - 
approximateDataSizepublic long approximateDataSize() - Specified by:
- approximateDataSizein interface- DataTreeMXBean
- Returns:
- data tree size in bytes. The size includes the znode path and its value.
 
 - 
countEphemeralspublic int countEphemerals() - Specified by:
- countEphemeralsin interface- DataTreeMXBean
- Returns:
- number of ephemeral nodes in the data tree
 
 - 
getWatchCountpublic int getWatchCount() - Specified by:
- getWatchCountin interface- DataTreeMXBean
- Returns:
- number of watches set.
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- ZKMBeanInfo
- Returns:
- a string identifying the MBean
 
 - 
isHiddenpublic 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 interface- ZKMBeanInfo
- Returns:
- true if the MBean is hidden.
 
 - 
getLastZxidpublic String getLastZxid() - Specified by:
- getLastZxidin interface- DataTreeMXBean
- Returns:
- the most recent zxid processed by the data tree.
 
 
- 
 
-