public class ReplicaGetOperationImpl extends OperationImpl implements ReplicaGetOperation
ReplicaGetOperation.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, vbucketcallback, CANCELLED, notMyVbucketNodes, TIMED_OUT| Constructor and Description |
|---|
ReplicaGetOperationImpl(java.lang.String k,
int index,
ReplicaGetOperation.Callback cb) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotMyVbucketNode(MemcachedNode node) |
protected void |
decodePayload(byte[] pl)
Decode the given payload for this command.
|
java.util.Collection<java.lang.String> |
getKeys()
Get the keys requested in this GetOperation.
|
java.util.Collection<MemcachedNode> |
getNotMyVbucketNodes() |
int |
getReplicaIndex() |
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() |
finishedPayload, getErrorMsg, getStatusForErrorCode, opaqueIsValid, prepareBuffer, readFromBuffer, resetInputaddClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, wasCancelled, writeComplete, writingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetKeysaddClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writingpublic ReplicaGetOperationImpl(java.lang.String k,
int index,
ReplicaGetOperation.Callback cb)
public void initialize()
Operationinitialize in interface Operationinitialize in class BaseOperationImplprotected void decodePayload(byte[] pl)
OperationImpldecodePayload in class OperationImplpl - the payload.public int getReplicaIndex()
getReplicaIndex in interface ReplicaGetOperationpublic java.util.Collection<java.lang.String> getKeys()
KeyedOperationgetKeys in interface KeyedOperationpublic java.util.Collection<MemcachedNode> getNotMyVbucketNodes()
getNotMyVbucketNodes in interface VBucketAwarepublic void addNotMyVbucketNode(MemcachedNode node)
addNotMyVbucketNode in interface VBucketAwarepublic void setNotMyVbucketNodes(java.util.Collection<MemcachedNode> nodes)
setNotMyVbucketNodes in interface VBucketAwarepublic void setVBucket(java.lang.String k,
short vb)
setVBucket in interface VBucketAwarepublic short getVBucket(java.lang.String k)
getVBucket in interface VBucketAwarepublic java.lang.String toString()
toString in class OperationImplCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.