|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.kafka.common.PartitionInfo
public class PartitionInfo
Information about a topic-partition.
| Constructor Summary | |
|---|---|
PartitionInfo(java.lang.String topic,
int partition,
Node leader,
Node[] replicas,
Node[] inSyncReplicas)
|
|
| Method Summary | |
|---|---|
Node[] |
inSyncReplicas()
The subset of the replicas that are in sync, that is caught-up to the leader and ready to take over as leader if the leader should fail |
Node |
leader()
The node id of the node currently acting as a leader for this partition or -1 if there is no leader |
int |
partition()
The partition id |
Node[] |
replicas()
The complete set of replicas for this partition regardless of whether they are alive or up-to-date |
java.lang.String |
topic()
The topic name |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PartitionInfo(java.lang.String topic,
int partition,
Node leader,
Node[] replicas,
Node[] inSyncReplicas)
| Method Detail |
|---|
public java.lang.String topic()
public int partition()
public Node leader()
public Node[] replicas()
public Node[] inSyncReplicas()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||