Class SASLBaseOperationImpl
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.protocol.BaseOperationImpl
net.spy.memcached.protocol.binary.OperationImpl
net.spy.memcached.protocol.binary.SASLBaseOperationImpl
- All Implemented Interfaces:
Operation
- Direct Known Subclasses:
SASLAuthOperationImpl, SASLStepOperationImpl
SASL authenticator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CallbackHandlerprotected final byte[]protected final String[]private static final byteprotected final StringFields inherited from class OperationImpl
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, vbucketFields inherited from class BaseOperationImpl
callback, CANCELLED, notMyVbucketNodes, TIMED_OUT -
Constructor Summary
ConstructorsConstructorDescriptionSASLBaseOperationImpl(byte c, String[] m, byte[] ch, String s, Map<String, ?> p, CallbackHandler h, OperationCallback cb) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract byte[]protected voiddecodePayload(byte[] pl) Decode the given payload for this command.protected voidfinishedPayload(byte[] pl) voidInitialize this operation.toString()Methods inherited from class OperationImpl
decodeByte, decodeInt, decodeLong, decodeShort, decodeUnsignedInt, generateOpaque, getErrorMsg, getStatusForErrorCode, opaqueIsValid, prepareBuffer, readFromBuffer, resetInputMethods inherited from class BaseOperationImpl
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleError, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setBuffer, setCallback, setCloneCount, setHandlingNode, timeOut, transitionState, wasCancelled, writeComplete, writingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Operation
addClone, cancel, getBuffer, getCallback, getCloneCount, getException, getHandlingNode, getState, getWriteCompleteTimestamp, handleRead, hasErrored, isCancelled, isTimedOut, isTimedOut, isTimedOutUnsent, setCloneCount, setHandlingNode, timeOut, writeComplete, writing
-
Field Details
-
SASL_CONTINUE
private static final byte SASL_CONTINUE- See Also:
-
mech
-
challenge
protected final byte[] challenge -
serverName
-
props
-
cbh
-
-
Constructor Details
-
SASLBaseOperationImpl
public SASLBaseOperationImpl(byte c, String[] m, byte[] ch, String s, Map<String, ?> p, CallbackHandler h, OperationCallback cb)
-
-
Method Details
-
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
-
buildResponse
- Throws:
SaslException
-
decodePayload
protected void decodePayload(byte[] pl) Description copied from class:OperationImplDecode the given payload for this command.- Overrides:
decodePayloadin classOperationImpl- Parameters:
pl- the payload.
-
finishedPayload
- Overrides:
finishedPayloadin classOperationImpl- Throws:
IOException
-
toString
- Overrides:
toStringin classOperationImpl
-