org.apache.zookeeper.server
Class Request

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

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<Id> authInfo
           
 ServerCnxn cnxn
           
 long createTime
           
 int cxid
           
 ByteBuffer request
           
static Request requestOfDeath
           
 long sessionId
           
 int type
           
 long zxid
           
 
Constructor Summary
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, ByteBuffer bb, List<Id> authInfo)
           
 
Method Summary
 KeeperException getException()
           
 TxnHeader getHdr()
           
 Object getOwner()
           
 org.apache.jute.Record getTxn()
           
 void setException(KeeperException e)
           
 void setHdr(TxnHeader hdr)
           
 void setOwner(Object owner)
           
 void setTxn(org.apache.jute.Record txn)
           
 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 final long sessionId

cxid

public final int cxid

type

public final int type

request

public final ByteBuffer request

cnxn

public final ServerCnxn cnxn

zxid

public long zxid

authInfo

public final List<Id> authInfo

createTime

public final long createTime
Constructor Detail

Request

public Request(ServerCnxn cnxn,
               long sessionId,
               int xid,
               int type,
               ByteBuffer bb,
               List<Id> authInfo)

Request

public Request(long sessionId,
               int xid,
               int type,
               TxnHeader hdr,
               org.apache.jute.Record txn,
               long zxid)
Method Detail

getOwner

public Object getOwner()

setOwner

public void setOwner(Object owner)

getHdr

public TxnHeader getHdr()

setHdr

public void setHdr(TxnHeader hdr)

getTxn

public org.apache.jute.Record getTxn()

setTxn

public void setTxn(org.apache.jute.Record txn)

toString

public String toString()
Overrides:
toString in class Object

setException

public void setException(KeeperException e)

getException

public KeeperException getException()


Copyright © 2011 The Apache Software Foundation