|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.ascii.ConcatenationOperationImpl
public class ConcatenationOperationImpl
Operation for ascii concatenations.
| Field Summary | |
|---|---|
protected static byte[] |
CRLF
|
protected byte[] |
data
|
protected int |
exp
|
protected int |
flags
|
protected java.lang.String |
key
|
protected java.lang.String |
type
|
| Fields inherited from class net.spy.memcached.protocol.BaseOperationImpl |
|---|
callback, CANCELLED |
| Constructor Summary | |
|---|---|
ConcatenationOperationImpl(ConcatenationType t,
java.lang.String k,
byte[] d,
OperationCallback cb)
|
|
| Method Summary | |
|---|---|
protected net.spy.memcached.protocol.ascii.OperationReadType |
getReadType()
|
void |
handleLine(java.lang.String line)
|
void |
initialize()
Initialize this operation. |
protected OperationStatus |
matchStatus(java.lang.String line,
OperationStatus... statii)
Match the status line provided against one of the given OperationStatus objects. |
void |
readFromBuffer(java.nio.ByteBuffer data)
Read data from the given byte buffer and dispatch to the appropriate read mechanism. |
protected void |
setArguments(java.nio.ByteBuffer bb,
java.lang.Object... args)
Set some arguments for an operation into the given byte buffer. |
protected void |
setReadType(net.spy.memcached.protocol.ascii.OperationReadType to)
Set the read type of this operation. |
protected void |
wasCancelled()
This is called on each subclass whenever an operation was cancelled. |
| Methods inherited from class net.spy.memcached.protocol.BaseOperationImpl |
|---|
cancel, getBuffer, getCallback, getException, getState, handleError, handleRead, hasErrored, isCancelled, setBuffer, setCallback, transitionState, writeComplete |
| Methods inherited from class net.spy.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, getState, handleRead, hasErrored, initialize, isCancelled, readFromBuffer, writeComplete |
| Field Detail |
|---|
protected final java.lang.String type
protected final java.lang.String key
protected final int flags
protected final int exp
protected final byte[] data
protected static final byte[] CRLF
| Constructor Detail |
|---|
public ConcatenationOperationImpl(ConcatenationType t,
java.lang.String k,
byte[] d,
OperationCallback cb)
| Method Detail |
|---|
public void handleLine(java.lang.String line)
public void initialize()
Operation
initialize in interface Operationinitialize in class BaseOperationImplprotected void wasCancelled()
BaseOperationImpl
wasCancelled in class BaseOperationImpl
protected final OperationStatus matchStatus(java.lang.String line,
OperationStatus... statii)
line - the current linestatii - several status objects
protected final net.spy.memcached.protocol.ascii.OperationReadType getReadType()
protected final void setReadType(net.spy.memcached.protocol.ascii.OperationReadType to)
protected final void setArguments(java.nio.ByteBuffer bb,
java.lang.Object... args)
public void readFromBuffer(java.nio.ByteBuffer data)
throws java.io.IOException
Operation
readFromBuffer in interface OperationreadFromBuffer in class BaseOperationImpljava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||