Interface PartitionInfo
-
- All Known Implementing Classes:
PartitionInfoImpl
public interface PartitionInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PartitionBrokerHealthgetHealth()intgetPartitionId()PartitionBrokerRolegetRole()booleanisLeader()
-
-
-
Method Detail
-
getPartitionId
int getPartitionId()
- Returns:
- the partition's id
-
getRole
PartitionBrokerRole getRole()
- Returns:
- the current role of the broker for this partition (i.e. leader or follower)
-
isLeader
boolean isLeader()
- Returns:
trueif the broker is the current leader of this partition
-
getHealth
PartitionBrokerHealth getHealth()
- Returns:
- the current health status for the broker for this partition (i.e. healthy or unhealthy)
-
-