Class ManagedLedgerInternalStats
java.lang.Object
org.apache.pulsar.common.policies.data.ManagedLedgerInternalStats
- Direct Known Subclasses:
PersistentTopicInternalStats
ManagedLedger internal statistics.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Pulsar cursor statistics.static class
Ledger information. -
Field Summary
Modifier and TypeFieldDescriptionlong
The count of messages written to the ledger that is currently open for writing.long
The size of messages written to the ledger that is currently open for writing (in bytes).The list of all cursors on this topic.long
Messages published since this broker loaded this managedLedger.The ledgerid: entryid of the last message that is written successfully.The time when the last ledger is created.The time when the last ledger failed.The ordered list of all ledgers for this topic holding messages.long
The total number of entries being tracked.int
The number of messages that complete (asynchronous) write requests.The state of this ledger for writing.long
The total storage size of all messages (in bytes).int
The number of cursors that are "caught up" and waiting for a new message to be published. -
Constructor Summary
-
Method Summary
-
Field Details
-
entriesAddedCounter
public long entriesAddedCounterMessages published since this broker loaded this managedLedger. -
numberOfEntries
public long numberOfEntriesThe total number of entries being tracked. -
totalSize
public long totalSizeThe total storage size of all messages (in bytes). -
currentLedgerEntries
public long currentLedgerEntriesThe count of messages written to the ledger that is currently open for writing. -
currentLedgerSize
public long currentLedgerSizeThe size of messages written to the ledger that is currently open for writing (in bytes). -
lastLedgerCreatedTimestamp
The time when the last ledger is created. -
lastLedgerCreationFailureTimestamp
The time when the last ledger failed. -
waitingCursorsCount
public int waitingCursorsCountThe number of cursors that are "caught up" and waiting for a new message to be published. -
pendingAddEntriesCount
public int pendingAddEntriesCountThe number of messages that complete (asynchronous) write requests. -
lastConfirmedEntry
The ledgerid: entryid of the last message that is written successfully. If the entryid is -1, then the ledger is open, yet no entries are written. -
state
The state of this ledger for writing. The state LedgerOpened means that a ledger is open for saving published messages. -
ledgers
The ordered list of all ledgers for this topic holding messages. -
cursors
The list of all cursors on this topic. Each subscription in the topic stats has a cursor.
-
-
Constructor Details
-
ManagedLedgerInternalStats
public ManagedLedgerInternalStats()
-