Class PartitionReassignRequestTransformer
java.lang.Object
io.camunda.zeebe.dynamic.config.api.PartitionReassignRequestTransformer
- All Implemented Interfaces:
ConfigurationChangeCoordinator.ConfigurationChangeRequest
public class PartitionReassignRequestTransformer
extends Object
implements ConfigurationChangeCoordinator.ConfigurationChangeRequest
Add new partitions and reassign all partitions to the given members based on round-robin
strategy.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionReassignRequestTransformer(Set<MemberId> members) PartitionReassignRequestTransformer(Set<MemberId> members, Optional<Integer> newReplicationFactor, Optional<Integer> newPartitionCount) -
Method Summary
Modifier and TypeMethodDescriptionoperations(ClusterConfiguration clusterConfiguration) Returns a list of operations to apply to the current configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.dynamic.config.changes.ConfigurationChangeCoordinator.ConfigurationChangeRequest
isForced
-
Constructor Details
-
PartitionReassignRequestTransformer
-
PartitionReassignRequestTransformer
-
-
Method Details
-
operations
public Either<Exception,List<ClusterConfigurationChangeOperation>> operations(ClusterConfiguration clusterConfiguration) Description copied from interface:ConfigurationChangeCoordinator.ConfigurationChangeRequestReturns a list of operations to apply to the current configuration. The operations will be applied in the given order in the list.- Specified by:
operationsin interfaceConfigurationChangeCoordinator.ConfigurationChangeRequest- Parameters:
clusterConfiguration- the current cluster configuration- Returns:
- an Either with the list of operations to apply or an exception if the request is not valid.
-