public class PartitionReassignment
extends java.lang.Object
Admin.listPartitionReassignments()
.Constructor and Description |
---|
PartitionReassignment(java.util.List<java.lang.Integer> replicas,
java.util.List<java.lang.Integer> addingReplicas,
java.util.List<java.lang.Integer> removingReplicas) |
PartitionReassignment(java.util.List<java.lang.Integer> replicas,
java.util.List<java.lang.Integer> observers,
java.util.List<java.lang.Integer> addingReplicas,
java.util.List<java.lang.Integer> removingReplicas) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
addingReplicas()
The brokers that we are adding this partition to as part of a reassignment.
|
java.util.List<java.lang.Integer> |
observers()
Get the replica observers which are asynchronously replicated.
|
java.util.List<java.lang.Integer> |
removingReplicas()
The brokers that we are removing this partition from as part of a reassignment.
|
java.util.List<java.lang.Integer> |
replicas()
The brokers which this partition currently resides on.
|
java.lang.String |
toString() |
public PartitionReassignment(java.util.List<java.lang.Integer> replicas, java.util.List<java.lang.Integer> observers, java.util.List<java.lang.Integer> addingReplicas, java.util.List<java.lang.Integer> removingReplicas)
public PartitionReassignment(java.util.List<java.lang.Integer> replicas, java.util.List<java.lang.Integer> addingReplicas, java.util.List<java.lang.Integer> removingReplicas)
public java.util.List<java.lang.Integer> replicas()
public java.util.List<java.lang.Integer> observers()
replicas()
.public java.util.List<java.lang.Integer> addingReplicas()
public java.util.List<java.lang.Integer> removingReplicas()
public java.lang.String toString()
toString
in class java.lang.Object