public class PartitionInfoPojo extends HealthAndAlertInfoPojo
HealthAndAlertInfoPojo
as well as an alert list
that provides reasons of the current health.Modifier and Type | Field and Description |
---|---|
String |
cluster
The logical name of the kafka cluster containing the kafka partition.
|
Long |
earliest_offset
The rank number of the first message still available for reading in this topic partition.
|
ZonedDateTime |
earliest_ts
The timestamp associated with the oldest message remaining in the kafka partition (older messages
have been removed by the kafka brokers, based on the retention policy of the topic.
|
Long |
latest_offset
The rank number of the last message written into the kafka partition.
|
ZonedDateTime |
latest_ts
The timestamp associated with the newest message written into the kafka partition.
|
int |
partition
The id of the topic partition (first partition has an id of 0)
|
Long |
storedMessagesCount
The number of messages that are currently stored in the Kafka Partition (i.e.
|
String |
topic
The name of the kafka topic as appearing when listing topics using the kafka tools.
|
alerts, health, health_code, tenant, TYPE_PROPERTY_NAME, update_ts
Constructor and Description |
---|
PartitionInfoPojo(String tenant,
KafkaTopicPojo topic,
int partition) |
Modifier and Type | Method and Description |
---|---|
String |
getAsKeyValuesStringForLogs()
Must be provided by concrete subclasses, in order to include all appropriate
fields to the user for
troubleshooting purpose
health level and alerts should not be reported, because their logging is usually
sufficiently done through the addAlert(Health, String, Object...) method.
|
public String cluster
public String topic
public int partition
public Long earliest_offset
public ZonedDateTime earliest_ts
This timestamp is generated by Kafka at write time (this is the default : timestamp=write time) or explicitly provided by the writer, in which case, it may be some earlier date, related to the business content of the message.
public Long latest_offset
public ZonedDateTime latest_ts
This timestamp is generated by Kafka at write time (this is the default : timestamp=write time) or explicitly provided by the writer, in which case, it may be some earlier date, related to the business content of the message.
public Long storedMessagesCount
public PartitionInfoPojo(String tenant, KafkaTopicPojo topic, int partition)
tenant
- the tenant nametopic
- the topic namepartition
- the number of partitionpublic String getAsKeyValuesStringForLogs()
HealthAndAlertInfoPojo
getAsKeyValuesStringForLogs
in class HealthAndAlertInfoPojo
Copyright © 2014–2022. All rights reserved.