Package org.apache.zookeeper.server
Class Request
- java.lang.Object
-
- org.apache.zookeeper.server.Request
-
- Direct Known Subclasses:
LearnerSyncRequest
public class Request extends java.lang.Object
This is the structure that represents a request moving through a chain of RequestProcessors. There are various pieces of information that is tacked onto the request as it is processed.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Id>
authInfo
ServerCnxn
cnxn
long
createTime
int
cxid
TxnHeader
hdr
java.nio.ByteBuffer
request
static Request
requestOfDeath
long
sessionId
org.apache.jute.Record
txn
int
type
long
zxid
-
Constructor Summary
Constructors Constructor Description Request(long sessionId, int xid, int type, TxnHeader hdr, org.apache.jute.Record txn, long zxid)
Request(ServerCnxn cnxn, long sessionId, int xid, int type, java.nio.ByteBuffer bb, java.util.List<Id> authInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeeperException
getException()
java.lang.Object
getOwner()
void
setException(KeeperException e)
void
setOwner(java.lang.Object owner)
java.lang.String
toString()
-
-
-
Field Detail
-
requestOfDeath
public static final Request requestOfDeath
-
sessionId
public final long sessionId
-
cxid
public final int cxid
-
type
public final int type
-
request
public final java.nio.ByteBuffer request
-
cnxn
public final ServerCnxn cnxn
-
hdr
public TxnHeader hdr
-
txn
public org.apache.jute.Record txn
-
zxid
public long zxid
-
authInfo
public final java.util.List<Id> authInfo
-
createTime
public final long createTime
-
-
Constructor Detail
-
Request
public Request(ServerCnxn cnxn, long sessionId, int xid, int type, java.nio.ByteBuffer bb, java.util.List<Id> authInfo)
- Parameters:
cnxn
-sessionId
-xid
-type
-bb
-
-
Request
public Request(long sessionId, int xid, int type, TxnHeader hdr, org.apache.jute.Record txn, long zxid)
-
-
Method Detail
-
getOwner
public java.lang.Object getOwner()
-
setOwner
public void setOwner(java.lang.Object owner)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setException
public void setException(KeeperException e)
-
getException
public KeeperException getException()
-
-