public class ReplicaEntity extends Entity
Entity
class representing a Replica used by MetricSampleAggregator
Constructor and Description |
---|
ReplicaEntity(org.apache.kafka.common.PartitionInfo tp,
int brokerId,
boolean isLeader) |
Modifier and Type | Method and Description |
---|---|
int |
brokerId() |
boolean |
equals(Object other)
The entity will be used as a key of a map.
|
String |
group()
Make replica entity part of a "topic" group.
|
int |
hashCode()
The entity will be used as a key of a map.
|
boolean |
isLeader() |
String |
toString() |
org.apache.kafka.common.PartitionInfo |
tp() |
public ReplicaEntity(org.apache.kafka.common.PartitionInfo tp, int brokerId, boolean isLeader)
public String group()
public org.apache.kafka.common.PartitionInfo tp()
public int brokerId()
public boolean isLeader()
public int hashCode()
Entity
public boolean equals(Object other)
Entity