public class PartitionInfo
extends java.lang.Object
Constructor and Description |
---|
PartitionInfo(java.lang.String topic, int partition, Node leader, Node[] replicas, Node[] inSyncReplicas) |
PartitionInfo(java.lang.String topic, int partition, Node leader, Node[] replicas, Node[] inSyncReplicas, Node[] offlineReplicas) |
Modifier and Type | Method and Description |
---|---|
Node[] |
inSyncReplicas()
All oracle db instances run on same disk, so there is no need of replicating data among instances.
|
Node |
leader()
The Node currently acting as a leader for this partition or null if there is no leader
|
Node[] |
offlineReplicas()
All oracle db instances run on same disk, so there is no need of replicating data among instances.
|
int |
partition()
The partition id
|
Node[] |
replicas()
All oracle db instances run on same disk, so there is no need of replicating data among instances.
|
java.lang.String |
topic()
The topic name
|
java.lang.String |
toString() |
public PartitionInfo(java.lang.String topic, int partition, Node leader, Node[] replicas, Node[] inSyncReplicas)
public java.lang.String topic()
public int partition()
public Node leader()
public Node[] replicas()
public Node[] inSyncReplicas()
public Node[] offlineReplicas()
public java.lang.String toString()
toString
in class java.lang.Object