Uses of Class org.apache.zookeeper.server.DataTree (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

## Uses of Class
org.apache.zookeeper.server.DataTree

- Packages that use DataTree
  Package | Description
  --- | ---
  org.apache.zookeeper.server | ZooKeeper server theory of operation
  org.apache.zookeeper.server.persistence |
  org.apache.zookeeper.server.util |

- - ### Uses of DataTree in org.apache.zookeeper.server

    Fields in org.apache.zookeeper.server declared as DataTree
    Modifier and Type | Field and Description
    --- | ---
    `protected DataTree` | ZKDatabase.`dataTree` make sure on a clear you take care of all these members.

    Methods in org.apache.zookeeper.server that return DataTree
    Modifier and Type | Method and Description
    --- | ---
    `DataTree` | ZKDatabase.`createDataTree()`
    `DataTree` | ZKDatabase.`getDataTree()` the datatree for this zkdatabase

    Constructors in org.apache.zookeeper.server with parameters of type DataTree
    Constructor and Description
    `DataTreeBean(DataTree dataTree)`

  - ### Uses of DataTree in org.apache.zookeeper.server.persistence

    Methods in org.apache.zookeeper.server.persistence with parameters of type DataTree
    Modifier and Type | Method and Description
    --- | ---
    `long` | FileSnap.`deserialize(DataTree dt, Map<Long,Integer> sessions)` deserialize a data tree from the most recent snapshot
    `long` | SnapShot.`deserialize(DataTree dt, Map<Long,Integer> sessions)` deserialize a data tree from the last valid snapshot and return the last zxid that was deserialized
    `void` | FileSnap.`deserialize(DataTree dt, Map<Long,Integer> sessions, InputArchive ia)` deserialize the datatree from an inputarchive
    `long` | FileTxnSnapLog.`fastForwardFromEdits(DataTree dt, Map<Long,Integer> sessions, FileTxnSnapLog.PlayBackListener listener)` This function will fast forward the server database to have the latest transactions in it.
    `void` | FileTxnSnapLog.`processTransaction(TxnHeader hdr, DataTree dt, Map<Long,Integer> sessions, Record txn)` process the transaction on the datatree
    `long` | FileTxnSnapLog.`restore(DataTree dt, Map<Long,Integer> sessions, FileTxnSnapLog.PlayBackListener listener)` this function restores the server database after reading from the snapshots and transaction logs
    `void` | FileTxnSnapLog.`save(DataTree dataTree, ConcurrentHashMap<Long,Integer> sessionsWithTimeouts, boolean syncSnap)` save the datatree and the sessions into a snapshot
    `void` | FileSnap.`serialize(DataTree dt, Map<Long,Integer> sessions, File snapShot, boolean fsync)` serialize the datatree and session into the file snapshot
    `void` | SnapShot.`serialize(DataTree dt, Map<Long,Integer> sessions, File name, boolean fsync)` persist the datatree and the sessions into a persistence storage
    `protected void` | FileSnap.`serialize(DataTree dt, Map<Long,Integer> sessions, OutputArchive oa, FileHeader header)` serialize the datatree and sessions

  - ### Uses of DataTree in org.apache.zookeeper.server.util

    Methods in org.apache.zookeeper.server.util with parameters of type DataTree
    Modifier and Type | Method and Description
    --- | ---
    `static void` | SerializeUtils.`deserializeSnapshot(DataTree dt, InputArchive ia, Map<Long,Integer> sessions)`
    `static void` | SerializeUtils.`serializeSnapshot(DataTree dt, OutputArchive oa, Map<Long,Integer> sessions)`

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