Inherited by BaseGetOpImpl, BaseStoreOperationImpl, CASOperationImpl, DeleteOperationImpl, FlushOperationImpl, MutatorOperationImpl, StatsOperationImpl, and VersionOperationImpl.

Public Member Functions | |
| abstract void | handleLine (String line) |
| void | readFromBuffer (ByteBuffer data) throws IOException |
Protected Member Functions | |
| final OperationReadType | getReadType () |
| final OperationStatus | matchStatus (String line, OperationStatus...statii) |
| OperationImpl (OperationCallback cb) | |
| OperationImpl () | |
| final void | setArguments (ByteBuffer bb, Object...args) |
| final void | setReadType (OperationReadType to) |
Static Protected Attributes | |
| static final byte[] | CRLF = {'\r', '\n'} |
Package Functions | |
| OperationErrorType | classifyError (String line) |
Package Attributes | |
| boolean | foundCr = false |
| OperationReadType | readType = OperationReadType.LINE |
Private Attributes | |
| final ByteArrayOutputStream | byteBuffer = new ByteArrayOutputStream() |
Static Private Attributes | |
| static final String | CHARSET = "UTF-8" |
| OperationImpl | ( | ) | [protected] |
| OperationImpl | ( | OperationCallback | cb | ) | [protected] |
| OperationErrorType classifyError | ( | String | line | ) | [package] |
| final OperationReadType getReadType | ( | ) | [protected] |
| abstract void handleLine | ( | String | line | ) | [pure virtual] |
| final OperationStatus matchStatus | ( | String | line, | |
| OperationStatus... | statii | |||
| ) | [protected] |
Match the status line provided against one of the given OperationStatus objects. If none match, return a failure status with the given line.
| line | the current line | |
| statii | several status objects |
| void readFromBuffer | ( | ByteBuffer | data | ) | throws IOException |
Read data from the given byte buffer and dispatch to the appropriate read mechanism.
Implements Operation.
| final void setArguments | ( | ByteBuffer | bb, | |
| Object... | args | |||
| ) | [protected] |
Set some arguments for an operation into the given byte buffer.
| final void setReadType | ( | OperationReadType | to | ) | [protected] |
Set the read type of this operation.
final ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream() [private] |
final byte [] CRLF = {'\r', '\n'} [static, protected] |
boolean foundCr = false [package] |
OperationReadType readType = OperationReadType.LINE [package] |
1.5.8