public class PersistentOfflineTopicStats extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PersistentOfflineTopicStats.CursorDetails |
class |
PersistentOfflineTopicStats.LedgerDetails |
| Modifier and Type | Field and Description |
|---|---|
String |
brokerName
Broker host where this stat was generated
|
Map<String,PersistentOfflineTopicStats.CursorDetails> |
cursorDetails
cursor ledger ids and backlog
|
List<PersistentOfflineTopicStats.LedgerDetails> |
dataLedgerDetails
data ledger ids
|
long |
messageBacklog
Total backlog
|
Date |
statGeneratedAt
timestamp when stat was generated
|
long |
storageSize
Space used to store the messages for the topic.
|
String |
topicName
offline topic name
|
long |
totalMessages
Total number of messages
|
| Constructor and Description |
|---|
PersistentOfflineTopicStats(String topicName,
String brokerName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCursorDetails(String cursor,
long backlog,
long ledgerId) |
void |
addLedgerDetails(long entries,
long timestamp,
long size,
long ledgerId) |
void |
reset() |
public long storageSize
public long totalMessages
public long messageBacklog
public final String brokerName
public final String topicName
public List<PersistentOfflineTopicStats.LedgerDetails> dataLedgerDetails
public Map<String,PersistentOfflineTopicStats.CursorDetails> cursorDetails
public Date statGeneratedAt
public void reset()
public void addCursorDetails(String cursor, long backlog, long ledgerId)
public void addLedgerDetails(long entries,
long timestamp,
long size,
long ledgerId)
Copyright © 2017–2018 Apache Software Foundation. All rights reserved.