DataTreeMXBean (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server

## Interface DataTreeMXBean

- All Known Implementing Classes:
    DataTreeBean

      public interface DataTreeMXBean

  Zookeeper data tree MBean.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `approximateDataSize()`
    `int` | `countEphemerals()`
    `String` | `getLastZxid()`
    `int` | `getNodeCount()`
    `int` | `getWatchCount()`

- - ### Method Detail

    - #### getNodeCount

          int getNodeCount()

      Returns:
        number of znodes in the data tree.

    - #### getLastZxid

          String getLastZxid()

      Returns:
        the most recent zxid processed by the data tree.

    - #### getWatchCount

          int getWatchCount()

      Returns:
        number of watches set.

    - #### approximateDataSize

          long approximateDataSize()

      Returns:
        data tree size in bytes. The size includes the znode path and its value.

    - #### countEphemerals

          int countEphemerals()

      Returns:
        number of ephemeral nodes in the data tree

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.