Class PersistentOfflineTopicStats

java.lang.Object
org.apache.pulsar.common.policies.data.PersistentOfflineTopicStats

public class PersistentOfflineTopicStats extends Object
This object is populated using meta data in zookeeper without actually bringing the topic online.
  • Field Details

    • storageSize

      public long storageSize
      Space used to store the messages for the topic (bytes).
    • totalMessages

      public long totalMessages
      Total number of messages.
    • messageBacklog

      public long messageBacklog
      Total backlog.
    • brokerName

      public final String brokerName
      Broker host where this stat was generated.
    • topicName

      public final String topicName
      Offline topic name.
    • dataLedgerDetails

      Data ledger ids.
    • cursorDetails

      Cursor ledger ids and backlog.
    • statGeneratedAt

      public Date statGeneratedAt
      Timestamp when stat was generated.
  • Constructor Details

    • PersistentOfflineTopicStats

      public PersistentOfflineTopicStats(String topicName, String brokerName)
  • Method Details

    • reset

      public void reset()
    • addCursorDetails

      public void addCursorDetails(String cursor, long backlog, long ledgerId)
    • addLedgerDetails

      public void addLedgerDetails(long entries, long timestamp, long size, long ledgerId)