Uses of Class
org.apache.zookeeper.txn.TxnHeader
-
Packages that use TxnHeader Package Description org.apache.zookeeper.server ZooKeeper server theory of operationorg.apache.zookeeper.server.persistence org.apache.zookeeper.server.quorum -
-
Uses of TxnHeader in org.apache.zookeeper.server
Methods in org.apache.zookeeper.server that return TxnHeader Modifier and Type Method Description TxnHeader
Request. getHdr()
TxnHeader
TxnLogEntry. getHeader()
Methods in org.apache.zookeeper.server with parameters of type TxnHeader Modifier and Type Method Description boolean
DataTree. compareDigest(TxnHeader header, Record txn, TxnDigest digest)
Compares the digest of the tree with the digest present in transaction digest.boolean
ZKDatabase. compareDigest(TxnHeader header, Record txn, TxnDigest digest)
DataTree.ProcessTxnResult
DataTree. processTxn(TxnHeader header, Record txn)
DataTree.ProcessTxnResult
DataTree. processTxn(TxnHeader header, Record txn, boolean isSubTxn)
DataTree.ProcessTxnResult
DataTree. processTxn(TxnHeader header, Record txn, TxnDigest digest)
DataTree.ProcessTxnResult
ZKDatabase. processTxn(TxnHeader hdr, Record txn, TxnDigest digest)
the process txn on the data and perform digest comparision.DataTree.ProcessTxnResult
ZooKeeperServer. processTxn(TxnHeader hdr, Record txn)
void
Request. setHdr(TxnHeader hdr)
Constructors in org.apache.zookeeper.server with parameters of type TxnHeader Constructor Description Request(long sessionId, int xid, int type, TxnHeader hdr, Record txn, long zxid)
TxnLogEntry(Record txn, TxnHeader header, TxnDigest digest)
-
Uses of TxnHeader in org.apache.zookeeper.server.persistence
Methods in org.apache.zookeeper.server.persistence that return TxnHeader Modifier and Type Method Description TxnHeader
FileTxnLog.FileTxnIterator. getHeader()
return the current headerTxnHeader
TxnLog.TxnIterator. getHeader()
return the transaction header.Methods in org.apache.zookeeper.server.persistence with parameters of type TxnHeader Modifier and Type Method Description boolean
FileTxnLog. append(TxnHeader hdr, Record txn)
append an entry to the transaction logboolean
FileTxnLog. append(TxnHeader hdr, Record txn, TxnDigest digest)
boolean
TxnLog. append(TxnHeader hdr, Record r)
Append a request to the transaction logboolean
TxnLog. append(TxnHeader hdr, Record r, TxnDigest digest)
Append a request to the transaction log with a digsetstatic byte[]
Util. marshallTxnEntry(TxnHeader hdr, Record txn)
Serializes transaction header and transaction data into a byte buffer.static byte[]
Util. marshallTxnEntry(TxnHeader hdr, Record txn, TxnDigest digest)
void
FileTxnSnapLog.PlayBackListener. onTxnLoaded(TxnHeader hdr, Record rec, TxnDigest digest)
void
FileTxnSnapLog. processTransaction(TxnHeader hdr, DataTree dt, java.util.Map<java.lang.Long,java.lang.Integer> sessions, Record txn)
process the transaction on the datatree -
Uses of TxnHeader in org.apache.zookeeper.server.quorum
Methods in org.apache.zookeeper.server.quorum with parameters of type TxnHeader Modifier and Type Method Description void
FollowerZooKeeperServer. logRequest(TxnHeader hdr, Record txn, TxnDigest digest)
-