public class NewPartitionReassignment
extends java.lang.Object
Admin.alterPartitionReassignments(Map, AlterPartitionReassignmentsOptions)
.
targetReplicas
is the total set of brokers assigned while targetObservers
is the set brokers that will act as observers. The size of targetReplicas
must be greater than the size of targetObservers
and every targetObservers
must be included in targetReplicas
.Constructor and Description |
---|
NewPartitionReassignment(java.util.List<java.lang.Integer> targetReplicas) |
Modifier and Type | Method and Description |
---|---|
static NewPartitionReassignment |
ofReplicasAndObservers(java.util.List<java.lang.Integer> replicas,
java.util.List<java.lang.Integer> observers) |
java.util.List<java.lang.Integer> |
targetObservers() |
java.util.List<java.lang.Integer> |
targetReplicas() |
public NewPartitionReassignment(java.util.List<java.lang.Integer> targetReplicas)
java.lang.IllegalArgumentException
- if no replicas are supplied@Confluent public static NewPartitionReassignment ofReplicasAndObservers(java.util.List<java.lang.Integer> replicas, java.util.List<java.lang.Integer> observers)
java.lang.IllegalArgumentException
- if no replicas are supplied or observers is nullpublic java.util.List<java.lang.Integer> targetReplicas()
@Confluent public java.util.List<java.lang.Integer> targetObservers()