Package net.spy.memcached.protocol.ascii
Class StatsOperationImpl
- java.lang.Object
-
- net.spy.memcached.compat.SpyObject
-
- net.spy.memcached.protocol.BaseOperationImpl
-
- net.spy.memcached.protocol.ascii.OperationImpl
-
- net.spy.memcached.protocol.ascii.StatsOperationImpl
-
- All Implemented Interfaces:
Operation,StatsOperation
final class StatsOperationImpl extends OperationImpl implements StatsOperation
Operation to retrieve statistics from a memcached server.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.spy.memcached.ops.StatsOperation
StatsOperation.Callback
-
-
Field Summary
Fields Modifier and Type Field Description private StatsOperation.Callbackcbprivate static OperationStatusENDprivate byte[]msgprivate static byte[]MSG-
Fields inherited from class net.spy.memcached.protocol.ascii.OperationImpl
CRLF
-
Fields inherited from class net.spy.memcached.protocol.BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT
-
-
Constructor Summary
Constructors Constructor Description StatsOperationImpl(java.lang.String arg, StatsOperation.Callback c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleLine(java.lang.String line)voidinitialize()Initialize this operation.java.lang.StringtoString()protected voidwasCancelled()This is called on each subclass whenever an operation was cancelled.-
Methods inherited from class net.spy.memcached.protocol.ascii.OperationImpl
classifyError, getErrorMsg, getReadType, matchStatus, readFromBuffer, setArguments, setReadType
-
Methods inherited from class net.spy.memcached.protocol.BaseOperationImpl
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, writeComplete, writing
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.spy.memcached.ops.Operation
addClone, cancel, getBuffer, getCallback, getCloneCount, getErrorMsg, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, readFromBuffer, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
-
-
-
Field Detail
-
END
private static final OperationStatus END
-
MSG
private static final byte[] MSG
-
msg
private final byte[] msg
-
cb
private final StatsOperation.Callback cb
-
-
Constructor Detail
-
StatsOperationImpl
public StatsOperationImpl(java.lang.String arg, StatsOperation.Callback c)
-
-
Method Detail
-
handleLine
public void handleLine(java.lang.String line)
- Specified by:
handleLinein classOperationImpl
-
initialize
public void initialize()
Description copied from interface:OperationInitialize this operation. This is used to prepare output byte buffers and stuff.- Specified by:
initializein interfaceOperation- Specified by:
initializein classBaseOperationImpl
-
wasCancelled
protected void wasCancelled()
Description copied from class:BaseOperationImplThis is called on each subclass whenever an operation was cancelled.- Overrides:
wasCancelledin classBaseOperationImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-