GetOperationImpl Class Reference

Inherits net::spy::memcached::protocol::binary::OperationImpl, net::spy::memcached::ops::GetOperation, and net::spy::memcached::ops::GetsOperation.

Collaboration diagram for GetOperationImpl:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Collection< StringgetKeys ()
 GetOperationImpl (String k, GetsOperation.Callback cb)
 GetOperationImpl (String k, GetOperation.Callback cb)
void initialize ()

Protected Member Functions

void decodePayload (byte[] pl)
OperationStatus getStatusForErrorCode (int errCode, byte[] errPl)

Static Package Attributes

static final int CMD = 0
static final int EXTRA_HDR_LEN = 4

Private Attributes

final String key


Constructor & Destructor Documentation

GetOperationImpl ( String  k,
GetOperation.Callback  cb 
)

GetOperationImpl ( String  k,
GetsOperation.Callback  cb 
)


Member Function Documentation

void decodePayload ( byte[]  pl  )  [protected]

Decode the given payload for this command.

Parameters:
pl the payload.

Reimplemented from OperationImpl.

Collection<String> getKeys (  ) 

Get the keys requested in this GetOperation.

Implements GetOperation.

OperationStatus getStatusForErrorCode ( int  errCode,
byte[]  errPl 
) [protected]

Get the OperationStatus object for the given error code.

Parameters:
errCode the error code
Returns:
the status to return, or null if this is an exceptional case

Reimplemented from OperationImpl.

void initialize (  ) 

Initialize this operation. This is used to prepare output byte buffers and stuff.

Implements Operation.


Member Data Documentation

final int CMD = 0 [static, package]

final int EXTRA_HDR_LEN = 4 [static, package]

Length of the extra header stuff for a GET response.

final String key [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:38 2012 for Project Wonder by  doxygen 1.5.8