Class NODES
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.cluster.NODES
- All Implemented Interfaces:
Resp3Command
`
CLUSTER NODES` command.
A command that uses the current CacheTopology and ConsistentHash to retrieve information about
the nodes. The response slightly changes with the node executing the command, as it is necessary to identify itself.
The execution is broadcast for nodes in the topology to identify themselves. So the response are cached according
to the node that executed the command and the topology.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.infinispan.distribution.ch.ConsistentHashprotected CompletionStage<CharSequence> Fields inherited from class org.infinispan.server.resp.RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) protected static CompletionStage<CharSequence> requestClusterInformation(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, org.infinispan.manager.EmbeddedCacheManager ecm, org.infinispan.topology.CacheTopology topology) Methods inherited from class org.infinispan.server.resp.RespCommand
extractKeys, fromByteBuf, getArity, getFirstKeyPos, getLastKeyPos, getName, getSteps, handleException, hasValidNumberOfArguments, match, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.server.resp.commands.Resp3Command
handleException
-
Field Details
-
hash
protected org.infinispan.distribution.ch.ConsistentHash hash -
response
-
-
Constructor Details
-
NODES
public NODES()
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
performin interfaceResp3Command
-
requestClusterInformation
protected static CompletionStage<CharSequence> requestClusterInformation(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, org.infinispan.manager.EmbeddedCacheManager ecm, org.infinispan.topology.CacheTopology topology)
-