public class KeyStatsOperationImpl extends OperationImpl implements StatsOperation
StatsOperation.Callback
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
key |
DUMMY_OPCODE, EMPTY_BYTES, ERR_2BIG, ERR_BUSY, ERR_DELTA_BADVAL, ERR_EXISTS, ERR_INTERNAL, ERR_INVAL, ERR_NO_MEM, ERR_NOT_FOUND, ERR_NOT_MY_VBUCKET, ERR_NOT_STORED, ERR_NOT_SUPPORTED, ERR_TEMP_FAIL, ERR_UNKNOWN_COMMAND, errorCode, keyLen, MIN_RECV_PACKET, opaque, REQ_MAGIC, RES_MAGIC, responseCas, responseCmd, responseOpaque, STATUS_OK, SUCCESS, vbucket
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT
Constructor and Description |
---|
KeyStatsOperationImpl(java.lang.String key,
StatsOperation.Callback c) |
Modifier and Type | Method and Description |
---|---|
void |
addNotMyVbucketNode(MemcachedNode node) |
protected void |
finishedPayload(byte[] pl) |
java.util.Collection<java.lang.String> |
getKeys()
Get the keys requested in this GetOperation.
|
java.util.Collection<MemcachedNode> |
getNotMyVbucketNodes() |
short |
getVBucket(java.lang.String k) |
void |
initialize()
Initialize this operation.
|
void |
setNotMyVbucketNodes(java.util.Collection<MemcachedNode> nodes) |
void |
setVBucket(java.lang.String k,
short vb) |
java.lang.String |
toString() |
decodePayload, getErrorMsg, getStatusForErrorCode, opaqueIsValid, prepareBuffer, readFromBuffer, resetInput
cancel, getBuffer, getCallback, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setHandlingNode, timeOut, transitionState, wasCancelled, writeComplete, writing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancel, getBuffer, getCallback, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setHandlingNode, timeOut, writeComplete, writing
public KeyStatsOperationImpl(java.lang.String key, StatsOperation.Callback c)
public void initialize()
Operation
initialize
in interface Operation
initialize
in class BaseOperationImpl
protected void finishedPayload(byte[] pl) throws java.io.IOException
finishedPayload
in class OperationImpl
java.io.IOException
public java.util.Collection<java.lang.String> getKeys()
KeyedOperation
getKeys
in interface KeyedOperation
public java.util.Collection<MemcachedNode> getNotMyVbucketNodes()
getNotMyVbucketNodes
in interface VBucketAware
public void addNotMyVbucketNode(MemcachedNode node)
addNotMyVbucketNode
in interface VBucketAware
public void setNotMyVbucketNodes(java.util.Collection<MemcachedNode> nodes)
setNotMyVbucketNodes
in interface VBucketAware
public void setVBucket(java.lang.String k, short vb)
setVBucket
in interface VBucketAware
public short getVBucket(java.lang.String k)
getVBucket
in interface VBucketAware
public java.lang.String toString()
toString
in class OperationImpl
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.