Package | Description |
---|---|
org.apache.zookeeper.server |
ZooKeeper server theory of operation
|
org.apache.zookeeper.server.persistence | |
org.apache.zookeeper.server.upgrade | |
org.apache.zookeeper.server.util |
Modifier and Type | Field and Description |
---|---|
protected DataTree |
ZKDatabase.dataTree
make sure on a clear you take care of
all these members.
|
Modifier and Type | Method and Description |
---|---|
DataTree |
ZooKeeperServer.DataTreeBuilder.build() |
DataTree |
ZooKeeperServer.BasicDataTreeBuilder.build() |
DataTree |
ZKDatabase.getDataTree()
the datatree for this zkdatabase
|
Constructor and Description |
---|
DataTreeBean(DataTree dataTree) |
Modifier and Type | Method and Description |
---|---|
long |
FileSnap.deserialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions)
deserialize a data tree from the most recent snapshot
|
long |
SnapShot.deserialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions)
deserialize a data tree from the last valid snapshot and
return the last zxid that was deserialized
|
void |
FileSnap.deserialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions,
org.apache.jute.InputArchive ia)
deserialize the datatree from an inputarchive
|
void |
FileTxnSnapLog.processTransaction(TxnHeader hdr,
DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions,
org.apache.jute.Record txn)
process the transaction on the datatree
|
long |
FileTxnSnapLog.restore(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions,
FileTxnSnapLog.PlayBackListener listener)
this function restores the server
database after reading from the
snapshots and transaction logs
|
void |
FileTxnSnapLog.save(DataTree dataTree,
java.util.concurrent.ConcurrentHashMap<java.lang.Long,java.lang.Integer> sessionsWithTimeouts)
save the datatree and the sessions into a snapshot
|
void |
FileSnap.serialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions,
java.io.File snapShot)
serialize the datatree and session into the file snapshot
|
void |
SnapShot.serialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions,
java.io.File name)
persist the datatree and the sessions into a persistence storage
|
protected void |
FileSnap.serialize(DataTree dt,
java.util.Map<java.lang.Long,java.lang.Integer> sessions,
org.apache.jute.OutputArchive oa,
FileHeader header)
serialize the datatree and sessions
|
Modifier and Type | Method and Description |
---|---|
DataTree |
UpgradeSnapShotV1.getNewDataTree() |
DataTree |
UpgradeSnapShot.getNewDataTree() |
Modifier and Type | Method and Description |
---|---|
static void |
SerializeUtils.deserializeSnapshot(DataTree dt,
org.apache.jute.InputArchive ia,
java.util.Map<java.lang.Long,java.lang.Integer> sessions) |
static void |
SerializeUtils.serializeSnapshot(DataTree dt,
org.apache.jute.OutputArchive oa,
java.util.Map<java.lang.Long,java.lang.Integer> sessions) |
Copyright © 2019 The Apache Software Foundation