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
Modifier and TypeClassDescriptionstatic class
Details about a cursor.static class
Details about a ledger. -
Field Summary
Modifier and TypeFieldDescriptionfinal String
Broker host where this stat was generated.Cursor ledger ids and backlog.Data ledger ids.long
Total backlog.Timestamp when stat was generated.long
Space used to store the messages for the topic (bytes).final String
Offline topic name.long
Total number of messages. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCursorDetails
(String cursor, long backlog, long ledgerId) void
addLedgerDetails
(long entries, long timestamp, long size, long ledgerId) void
reset()
-
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)
-