Package org.infinispan.commands.topology
Class TopologyUpdateCommand
java.lang.Object
org.infinispan.commands.topology.AbstractCacheControlCommand
org.infinispan.commands.topology.TopologyUpdateCommand
- All Implemented Interfaces:
GlobalRpcCommand,ReplicableCommand,TracedCommand
Coordinator to member:
The coordinator is updating the consistent hash.
Used to signal the end of rebalancing as well.
- Since:
- 11.0
- Author:
- Ryan Emerson
-
Field Summary
FieldsFields inherited from class org.infinispan.commands.topology.AbstractCacheControlCommand
origin -
Constructor Summary
ConstructorsConstructorDescriptionTopologyUpdateCommand(String cacheName, Address origin, CacheTopology cacheTopology, AvailabilityMode availabilityMode, int viewId) -
Method Summary
Modifier and TypeMethodDescriptiongetPhase()intInvoke the command asynchronously.voidreadFrom(ObjectInput input) Reads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput).toString()voidwriteTo(ObjectOutput output) Writes this instance to theObjectOutput.Methods inherited from class org.infinispan.commands.topology.AbstractCacheControlCommand
getCommandId, isReturnValueExpected, setOriginMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.commands.ReplicableCommand
canBlock, invoke, invokeAsync, isSuccessful, logThrowableMethods inherited from interface org.infinispan.commands.TracedCommand
getOperationName, getSpanAttributes, setSpanAttributes
-
Field Details
-
COMMAND_ID
public static final byte COMMAND_ID- See Also:
-
-
Constructor Details
-
TopologyUpdateCommand
public TopologyUpdateCommand() -
TopologyUpdateCommand
public TopologyUpdateCommand(String cacheName, Address origin, CacheTopology cacheTopology, AvailabilityMode availabilityMode, int viewId)
-
-
Method Details
-
invokeAsync
Description copied from interface:GlobalRpcCommandInvoke the command asynchronously.- Throws:
Throwable
-
getCacheName
-
getCurrentCH
-
getPendingCH
-
getPhase
-
getAvailabilityMode
-
getTopologyId
public int getTopologyId() -
writeTo
Description copied from interface:ReplicableCommandWrites this instance to theObjectOutput.- Parameters:
output- the stream.- Throws:
IOException- if an error occurred during the I/O.
-
readFrom
Description copied from interface:ReplicableCommandReads this instance from the stream written byReplicableCommand.writeTo(ObjectOutput).- Parameters:
input- the stream to read.- Throws:
IOException- if an error occurred during the I/O.ClassNotFoundException- if it tries to load an undefined class.
-
toString
-