org.apache.zookeeper.server
Class Request

java.lang.Object
  extended by 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
 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
Request(ServerCnxn cnxn, long sessionId, int xid, int type, java.nio.ByteBuffer bb, java.util.List<Id> authInfo)
           
 
Method Summary
 KeeperException getException()
           
 java.lang.Object getOwner()
           
 void setException(KeeperException e)
           
 void setOwner(java.lang.Object owner)
           
 java.lang.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 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 -
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 class java.lang.Object

setException

public void setException(KeeperException e)

getException

public KeeperException getException()


Copyright © 2012 The Apache Software Foundation