Class ScaleRequestTransformer
java.lang.Object
io.camunda.zeebe.dynamic.config.api.ScaleRequestTransformer
- All Implemented Interfaces:
ConfigurationChangeCoordinator.ConfigurationChangeRequest
public class ScaleRequestTransformer
extends Object
implements ConfigurationChangeCoordinator.ConfigurationChangeRequest
-
Constructor Summary
ConstructorsConstructorDescriptionScaleRequestTransformer(Set<MemberId> members) ScaleRequestTransformer(Set<MemberId> members, Optional<Integer> newReplicationFactor) ScaleRequestTransformer(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
-
ScaleRequestTransformer
-
ScaleRequestTransformer
-
ScaleRequestTransformer
-
-
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.
-