public class NewPartitionReassignment extends 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(List<Integer> targetReplicas) |
Modifier and Type | Method and Description |
---|---|
static NewPartitionReassignment |
ofReplicasAndObservers(List<Integer> replicas,
List<Integer> observers) |
List<Integer> |
targetObservers() |
List<Integer> |
targetReplicas() |
public NewPartitionReassignment(List<Integer> targetReplicas)
IllegalArgumentException
- if no replicas are supplied@Confluent public static NewPartitionReassignment ofReplicasAndObservers(List<Integer> replicas, List<Integer> observers)
IllegalArgumentException
- if no replicas are supplied or observers is null@Confluent public List<Integer> targetObservers()