Package org.infinispan.server.resp
Class RespServer
java.lang.Object
org.infinispan.server.core.AbstractProtocolServer<RespServerConfiguration>
org.infinispan.server.resp.RespServer
- All Implemented Interfaces:
AutoCloseable
,ProtocolServer<RespServerConfiguration>
Server that supports RESP protocol
- Since:
- 14.0
- Author:
- William Burns
-
Field Summary
FieldsFields inherited from class org.infinispan.server.core.AbstractProtocolServer
adminEndpoint, cacheManager, configuration, server, transport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdvancedCache
<byte[], byte[]> getCache()
Returns the cache being used by the Resp serverio.netty.channel.group.ChannelMatcher
Returns aChannelMatcher
which matches channels which belong to this protocol serverio.netty.channel.ChannelInboundHandler
Gets the decoder for this protocol server.io.netty.channel.ChannelOutboundHandler
Gets the encoder for this protocol server.io.netty.channel.ChannelInitializer
<io.netty.channel.Channel> Returns a pipeline factoryvoid
installDetector
(io.netty.channel.Channel ch) Installs a protocol detector on the channelnewHandler
(AdvancedCache<byte[], byte[]> cache) protected void
void
stop()
Stops the server.Methods inherited from class org.infinispan.server.core.AbstractProtocolServer
defaultCacheName, getBlockingManager, getCacheManager, getConfiguration, getEnclosingProtocolServer, getExecutor, getHost, getName, getPort, getQualifiedName, getServerStateManager, getTransport, internalPostStart, isCacheIgnored, isTransportEnabled, postStart, registerMetrics, registerServerMBeans, setEnclosingProtocolServer, setServerManagement, start, startCaches, startTransport, unregisterMetrics, unregisterServerMBeans
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.server.core.ProtocolServer
close
-
Field Details
-
RESP_SERVER_FEATURE
- See Also:
-
RESP_KEY_MEDIA_TYPE
-
-
Constructor Details
-
RespServer
public RespServer()
-
-
Method Details
-
startInternal
protected void startInternal()- Overrides:
startInternal
in classAbstractProtocolServer<RespServerConfiguration>
-
getEncoder
public io.netty.channel.ChannelOutboundHandler getEncoder()Description copied from interface:ProtocolServer
Gets the encoder for this protocol server. The encoder is responsible for writing back common header responses back to client. This method can return null if the server has no encoder. You can find an example of the server that has no encoder in the Memcached server. -
getDecoder
public io.netty.channel.ChannelInboundHandler getDecoder()Description copied from interface:ProtocolServer
Gets the decoder for this protocol server. The decoder is responsible for reading client requests. This method cannot return null. -
getInitializer
public io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getInitializer()Description copied from interface:ProtocolServer
Returns a pipeline factory -
getChannelMatcher
public io.netty.channel.group.ChannelMatcher getChannelMatcher()Description copied from interface:ProtocolServer
Returns aChannelMatcher
which matches channels which belong to this protocol server -
stop
public void stop()Description copied from interface:ProtocolServer
Stops the server.- Specified by:
stop
in interfaceProtocolServer<RespServerConfiguration>
- Overrides:
stop
in classAbstractProtocolServer<RespServerConfiguration>
-
getCache
Returns the cache being used by the Resp server -
newHandler
-
installDetector
public void installDetector(io.netty.channel.Channel ch) Description copied from interface:ProtocolServer
Installs a protocol detector on the channel- Parameters:
ch
-
-
getIterationManager
-
getDataStructureIterationManager
-
getTimeService
-
segmentSlotRelation
-
metadataRepository
-