Class PersistentOfflineTopicStats
java.lang.Object
org.apache.pulsar.common.policies.data.PersistentOfflineTopicStats
This object is populated using meta data in zookeeper without actually bringing the topic online.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDetails about a cursor.static classDetails about a ledger. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringBroker host where this stat was generated.Cursor ledger ids and backlog.Data ledger ids.longTotal backlog.Timestamp when stat was generated.longSpace used to store the messages for the topic (bytes).final StringOffline topic name.longTotal number of messages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCursorDetails(String cursor, long backlog, long ledgerId) voidaddLedgerDetails(long entries, long timestamp, long size, long ledgerId) voidreset()
-
Field Details
-
storageSize
public long storageSizeSpace used to store the messages for the topic (bytes). -
totalMessages
public long totalMessagesTotal number of messages. -
messageBacklog
public long messageBacklogTotal backlog. -
brokerName
Broker host where this stat was generated. -
topicName
Offline topic name. -
dataLedgerDetails
Data ledger ids. -
cursorDetails
Cursor ledger ids and backlog. -
statGeneratedAt
Timestamp when stat was generated.
-
-
Constructor Details
-
PersistentOfflineTopicStats
-
-
Method Details
-
reset
public void reset() -
addCursorDetails
-
addLedgerDetails
public void addLedgerDetails(long entries, long timestamp, long size, long ledgerId)
-