|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.binary.TouchOperationImpl
public class TouchOperationImpl
Operation to reset a timeout in Membase server.
| Field Summary | |
|---|---|
protected static byte[] |
EMPTY_BYTES
|
protected static int |
ERR_EINVAL
|
protected static int |
ERR_EXISTS
|
protected static int |
ERR_NOT_FOUND
Error code for items that were not found. |
protected static int |
ERR_NOT_MY_VBUCKET
|
protected static int |
ERR_NOT_STORED
|
protected static int |
ERR_TEMP_FAIL
|
protected int |
errorCode
|
protected static OperationStatus |
EXISTS_STATUS
|
protected int |
keyLen
|
protected static int |
MIN_RECV_PACKET
|
protected static OperationStatus |
NOT_FOUND_STATUS
|
protected static OperationStatus |
NOT_MY_VBUCKET_STATUS
|
protected static OperationStatus |
NOT_STORED_STATUS
|
protected int |
opaque
|
protected static byte |
REQ_MAGIC
|
protected static byte |
RES_MAGIC
|
protected long |
responseCas
|
protected int |
responseCmd
|
protected int |
responseOpaque
|
protected static OperationStatus |
STATUS_OK
|
protected static OperationStatus |
TEMP_FAIL
|
| Fields inherited from class net.spy.memcached.protocol.BaseOperationImpl |
|---|
callback, CANCELLED, notMyVbucketNodes, vbucket |
| Constructor Summary | |
|---|---|
protected |
TouchOperationImpl(String k,
int e,
OperationCallback cb)
|
| Method Summary | |
|---|---|
protected void |
decodePayload(byte[] pl)
Decode the given payload for this command. |
protected void |
finishedPayload(byte[] pl)
|
Collection<String> |
getKeys()
Get the keys requested in this GetOperation. |
protected OperationStatus |
getStatusForErrorCode(int errCode,
byte[] errPl)
Get the OperationStatus object for the given error code. |
void |
initialize()
Initialize this operation. |
protected boolean |
opaqueIsValid()
Validate an opaque value from the header. |
protected void |
prepareBuffer(String key,
long cas,
byte[] val,
Object... extraHeaders)
Prepare a send buffer. |
void |
readFromBuffer(ByteBuffer b)
Read data from the given byte buffer and dispatch to the appropriate read mechanism. |
protected void |
resetInput()
|
| Methods inherited from class net.spy.memcached.protocol.BaseOperationImpl |
|---|
addNotMyVbucketNode, cancel, getBuffer, getCallback, getException, getHandlingNode, getNotMyVbucketNodes, getState, getVbucket, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setHandlingNode, setNotMyVbucketNodes, setVBucket, timeOut, transitionState, wasCancelled, writeComplete |
| Methods inherited from class net.spy.memcached.compat.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.spy.memcached.ops.Operation |
|---|
cancel, getBuffer, getCallback, getException, getHandlingNode, getState, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setHandlingNode, timeOut, writeComplete |
| Methods inherited from interface net.spy.memcached.ops.VBucketAware |
|---|
addNotMyVbucketNode, getNotMyVbucketNodes, setNotMyVbucketNodes, setVBucket |
| Field Detail |
|---|
protected static final byte REQ_MAGIC
protected static final byte RES_MAGIC
protected static final int MIN_RECV_PACKET
protected static final int ERR_NOT_FOUND
protected static final int ERR_EXISTS
protected static final int ERR_EINVAL
protected static final int ERR_NOT_STORED
protected static final int ERR_NOT_MY_VBUCKET
protected static final int ERR_TEMP_FAIL
protected static final OperationStatus NOT_FOUND_STATUS
protected static final OperationStatus EXISTS_STATUS
protected static final OperationStatus NOT_STORED_STATUS
protected static final OperationStatus NOT_MY_VBUCKET_STATUS
protected static final OperationStatus TEMP_FAIL
protected static final byte[] EMPTY_BYTES
protected static final OperationStatus STATUS_OK
protected final int opaque
protected int keyLen
protected int responseCmd
protected int errorCode
protected int responseOpaque
protected long responseCas
| Constructor Detail |
|---|
protected TouchOperationImpl(String k,
int e,
OperationCallback cb)
| Method Detail |
|---|
public Collection<String> getKeys()
KeyedOperation
getKeys in interface KeyedOperation
protected OperationStatus getStatusForErrorCode(int errCode,
byte[] errPl)
errCode - the error code
public void initialize()
Operation
initialize in interface Operationinitialize in class BaseOperationImplprotected void resetInput()
public void readFromBuffer(ByteBuffer b)
throws IOException
Operation
readFromBuffer in interface OperationreadFromBuffer in class BaseOperationImplIOException
protected void finishedPayload(byte[] pl)
throws IOException
IOExceptionprotected void decodePayload(byte[] pl)
pl - the payload.protected boolean opaqueIsValid()
protected void prepareBuffer(String key,
long cas,
byte[] val,
Object... extraHeaders)
key - the key (for keyed ops)cas - the cas valueval - the data payloadextraHeaders - any additional headers that need to be sent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||