Uses of Class
org.apache.zookeeper.server.DataTree
Packages that use DataTree
Package
Description
ZooKeeper server theory of operation
-
Uses of DataTree in org.apache.zookeeper.server
Fields in org.apache.zookeeper.server declared as DataTreeModifier and TypeFieldDescriptionprotected DataTreeZKDatabase.dataTreemake sure on a clear you take care of all these members.Methods in org.apache.zookeeper.server that return DataTreeModifier and TypeMethodDescriptionZKDatabase.createDataTree()ZKDatabase.getDataTree()the datatree for this zkdatabaseConstructors in org.apache.zookeeper.server with parameters of type DataTree -
Uses of DataTree in org.apache.zookeeper.server.persistence
Methods in org.apache.zookeeper.server.persistence with parameters of type DataTreeModifier and TypeMethodDescriptionlongFileSnap.deserialize(DataTree dt, Map<Long, Integer> sessions) deserialize a data tree from the most recent snapshotvoidFileSnap.deserialize(DataTree dt, Map<Long, Integer> sessions, InputArchive ia) deserialize the datatree from an inputarchivelongSnapShot.deserialize(DataTree dt, Map<Long, Integer> sessions) deserialize a data tree from the last valid snapshot and return the last zxid that was deserializedlongFileTxnSnapLog.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.voidFileTxnSnapLog.processTransaction(TxnHeader hdr, DataTree dt, Map<Long, Integer> sessions, Record txn) process the transaction on the datatreelongFileTxnSnapLog.restore(DataTree dt, Map<Long, Integer> sessions, FileTxnSnapLog.PlayBackListener listener) this function restores the server database after reading from the snapshots and transaction logsvoidFileTxnSnapLog.save(DataTree dataTree, ConcurrentHashMap<Long, Integer> sessionsWithTimeouts, boolean syncSnap) save the datatree and the sessions into a snapshotvoidserialize the datatree and session into the file snapshotprotected voidFileSnap.serialize(DataTree dt, Map<Long, Integer> sessions, OutputArchive oa, FileHeader header) serialize the datatree and sessionsvoidpersist the datatree and the sessions into a persistence storage -
Uses of DataTree in org.apache.zookeeper.server.util
Methods in org.apache.zookeeper.server.util with parameters of type DataTreeModifier and TypeMethodDescriptionstatic voidSerializeUtils.deserializeSnapshot(DataTree dt, InputArchive ia, Map<Long, Integer> sessions) QuotaMetricsUtils.getQuotaBytesLimit(DataTree dataTree) Traverse the quota subtree and return per namespace quota bytes limit `QuotaMetricsUtils.getQuotaBytesUsage(DataTree dataTree) Traverse the quota subtree and return per namespace quota bytes usageQuotaMetricsUtils.getQuotaCountLimit(DataTree dataTree) Traverse the quota subtree and return per namespace quota count limitQuotaMetricsUtils.getQuotaCountUsage(DataTree dataTree) Traverse the quota subtree and return per namespace quota count usagestatic voidSerializeUtils.serializeSnapshot(DataTree dt, OutputArchive oa, Map<Long, Integer> sessions)