public class Decoder10$ extends AbstractVersionedDecoder implements ServerConstants, Log
Modifier and Type | Field and Description |
---|---|
static Decoder10$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Decoder10$() |
Modifier and Type | Method and Description |
---|---|
ErrorResponse |
createErrorResponse(HotRodHeader h,
Throwable t)
Create an error response based on the Throwable instance received.
|
Object |
createGetResponse(HotRodHeader h,
CacheEntry entry)
Create a response for get a request.
|
Object |
createNotExecutedResponse(HotRodHeader header,
byte[] prev)
Create a response indicating the the operation could not be executed.
|
Object |
createNotExistResponse(HotRodHeader header)
Create a response indicating that the key, which the message tried to operate on, did not exist.
|
Object |
createStatsResponse(HotRodHeader h,
Stats cacheStats,
NettyTransport t)
Create a response for the stats command.
|
Object |
createSuccessResponse(HotRodHeader header,
byte[] prev)
Create a successful response.
|
Object |
customReadHeader(HotRodHeader h,
org.jboss.netty.buffer.ChannelBuffer buffer,
AdvancedCache<byte[],byte[]> cache)
Handle a protocol specific header reading.
|
Object |
customReadKey(HotRodHeader h,
org.jboss.netty.buffer.ChannelBuffer buffer,
AdvancedCache<byte[],byte[]> cache,
scala.collection.Seq<QueryFacade> queryFacades)
Handle a protocol specific key reading.
|
Object |
customReadValue(HotRodHeader header,
org.jboss.netty.buffer.ChannelBuffer buffer,
AdvancedCache<byte[],byte[]> cache)
Handle a protocol specific value reading.
|
GetWithMetadataResponse |
getKeyMetadata(HotRodHeader h,
byte[] k,
AdvancedCache<byte[],byte[]> cache) |
AdvancedCache<byte[],byte[]> |
getOptimizedCache(HotRodHeader h,
AdvancedCache<byte[],byte[]> c)
Get an optimized cache instance depending on the operation parameters.
|
boolean |
readHeader(org.jboss.netty.buffer.ChannelBuffer buffer,
byte version,
long messageId,
HotRodHeader header)
Having read the message's Id, read the rest of Hot Rod header from the given buffer and return it.
|
scala.Tuple2<byte[],Object> |
readKey(HotRodHeader h,
org.jboss.netty.buffer.ChannelBuffer buffer)
Read the key to operate on from the message.
|
scala.Tuple2<RequestParameters,Object> |
readParameters(HotRodHeader header,
org.jboss.netty.buffer.ChannelBuffer buffer)
Read the parameters of the operation, if present.
|
scala.Enumeration.Value |
toResponse(scala.Enumeration.Value request) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
EXPIRATION_DEFAULT, EXPIRATION_NONE
log, logErrorDetectingCrashedMember, logUnableToUpdateView, logViewNullWhileDetectingCrashedMember
debug, debug, debug, debug, debug, debugf, error, info, info, isDebugEnabled, isTraceEnabled, logChannelStillBound, logChannelStillConnected, logErrorBeforeReadingRequest, logExceptionReported, logPostingShutdownRequest, logServerDidNotClose, logServerDidNotUnbind, logSettingMasterThreadsNotSupported, logStartWithArgs, trace, trace, trace, trace, tracef, warn
public static final Decoder10$ MODULE$
public boolean readHeader(org.jboss.netty.buffer.ChannelBuffer buffer, byte version, long messageId, HotRodHeader header)
AbstractVersionedDecoder
readHeader
in class AbstractVersionedDecoder
public scala.Tuple2<byte[],Object> readKey(HotRodHeader h, org.jboss.netty.buffer.ChannelBuffer buffer)
AbstractVersionedDecoder
readKey
in class AbstractVersionedDecoder
public scala.Tuple2<RequestParameters,Object> readParameters(HotRodHeader header, org.jboss.netty.buffer.ChannelBuffer buffer)
AbstractVersionedDecoder
readParameters
in class AbstractVersionedDecoder
public Object createSuccessResponse(HotRodHeader header, byte[] prev)
AbstractVersionedDecoder
createSuccessResponse
in class AbstractVersionedDecoder
public Object createNotExecutedResponse(HotRodHeader header, byte[] prev)
AbstractVersionedDecoder
createNotExecutedResponse
in class AbstractVersionedDecoder
public Object createNotExistResponse(HotRodHeader header)
AbstractVersionedDecoder
createNotExistResponse
in class AbstractVersionedDecoder
public Object createGetResponse(HotRodHeader h, CacheEntry entry)
AbstractVersionedDecoder
createGetResponse
in class AbstractVersionedDecoder
public Object customReadHeader(HotRodHeader h, org.jboss.netty.buffer.ChannelBuffer buffer, AdvancedCache<byte[],byte[]> cache)
AbstractVersionedDecoder
customReadHeader
in class AbstractVersionedDecoder
public Object customReadKey(HotRodHeader h, org.jboss.netty.buffer.ChannelBuffer buffer, AdvancedCache<byte[],byte[]> cache, scala.collection.Seq<QueryFacade> queryFacades)
AbstractVersionedDecoder
customReadKey
in class AbstractVersionedDecoder
public GetWithMetadataResponse getKeyMetadata(HotRodHeader h, byte[] k, AdvancedCache<byte[],byte[]> cache)
public Object customReadValue(HotRodHeader header, org.jboss.netty.buffer.ChannelBuffer buffer, AdvancedCache<byte[],byte[]> cache)
AbstractVersionedDecoder
customReadValue
in class AbstractVersionedDecoder
public Object createStatsResponse(HotRodHeader h, Stats cacheStats, NettyTransport t)
AbstractVersionedDecoder
createStatsResponse
in class AbstractVersionedDecoder
public ErrorResponse createErrorResponse(HotRodHeader h, Throwable t)
AbstractVersionedDecoder
createErrorResponse
in class AbstractVersionedDecoder
public AdvancedCache<byte[],byte[]> getOptimizedCache(HotRodHeader h, AdvancedCache<byte[],byte[]> c)
AbstractVersionedDecoder
getOptimizedCache
in class AbstractVersionedDecoder
public scala.Enumeration.Value toResponse(scala.Enumeration.Value request)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.