org.apache.zookeeper.server
Class Request

java.lang.Object
  extended by org.apache.zookeeper.server.Request
Direct Known Subclasses:
FollowerSyncRequest

public class Request
extends 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
 List<org.apache.zookeeper.data.Id> authInfo
           
 ServerCnxn cnxn
           
 long createTime
           
 int cxid
           
 org.apache.zookeeper.txn.TxnHeader hdr
           
 ByteBuffer request
           
static Request requestOfDeath
           
 long sessionId
           
 Record txn
           
 int type
           
 long zxid
           
 
Constructor Summary
Request(ServerCnxn cnxn, long sessionId, int xid, int type, ByteBuffer bb, List<org.apache.zookeeper.data.Id> authInfo)
           
 
Method Summary
 KeeperException getException()
           
 Object getOwner()
           
 void setException(KeeperException e)
           
 void setOwner(Object owner)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

requestOfDeath

public static final Request requestOfDeath

sessionId

public long sessionId

cxid

public int cxid

type

public int type

request

public ByteBuffer request

cnxn

public ServerCnxn cnxn

hdr

public org.apache.zookeeper.txn.TxnHeader hdr

txn

public Record txn

zxid

public long zxid

authInfo

public List<org.apache.zookeeper.data.Id> authInfo

createTime

public long createTime
Constructor Detail

Request

public Request(ServerCnxn cnxn,
               long sessionId,
               int xid,
               int type,
               ByteBuffer bb,
               List<org.apache.zookeeper.data.Id> authInfo)
Parameters:
cnxn -
sessionId -
xid -
type -
bb -
Method Detail

getOwner

public Object getOwner()

setOwner

public void setOwner(Object owner)

toString

public String toString()
Overrides:
toString in class Object

setException

public void setException(KeeperException e)

getException

public KeeperException getException()