Class ManagedLedgerInternalStats
- java.lang.Object
-
- org.apache.pulsar.common.policies.data.ManagedLedgerInternalStats
-
- Direct Known Subclasses:
PersistentTopicInternalStats
public class ManagedLedgerInternalStats extends java.lang.ObjectManagedLedger internal statistics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManagedLedgerInternalStats.CursorStatsPulsar cursor statistics.static classManagedLedgerInternalStats.LedgerInfoLedger information.
-
Field Summary
Fields Modifier and Type Field Description longcurrentLedgerEntriesThe count of messages written to the ledger that is currently open for writing.longcurrentLedgerSizeThe size of messages written to the ledger that is currently open for writing (in bytes).java.util.Map<java.lang.String,ManagedLedgerInternalStats.CursorStats>cursorsThe list of all cursors on this topic.longentriesAddedCounterMessages published since this broker loaded this managedLedger.java.lang.StringlastConfirmedEntryThe ledgerid: entryid of the last message that is written successfully.java.lang.StringlastLedgerCreatedTimestampThe time when the last ledger is created.java.lang.StringlastLedgerCreationFailureTimestampThe time when the last ledger failed.java.util.List<ManagedLedgerInternalStats.LedgerInfo>ledgersThe ordered list of all ledgers for this topic holding messages.longnumberOfEntriesThe total number of entries being tracked.intpendingAddEntriesCountThe number of messages that complete (asynchronous) write requests.java.lang.StringstateThe state of this ledger for writing.longtotalSizeThe total storage size of all messages (in bytes).intwaitingCursorsCountThe number of cursors that are "caught up" and waiting for a new message to be published.
-
Constructor Summary
Constructors Constructor Description ManagedLedgerInternalStats()
-
-
-
Field Detail
-
entriesAddedCounter
public long entriesAddedCounter
Messages published since this broker loaded this managedLedger.
-
numberOfEntries
public long numberOfEntries
The total number of entries being tracked.
-
totalSize
public long totalSize
The total storage size of all messages (in bytes).
-
currentLedgerEntries
public long currentLedgerEntries
The count of messages written to the ledger that is currently open for writing.
-
currentLedgerSize
public long currentLedgerSize
The size of messages written to the ledger that is currently open for writing (in bytes).
-
lastLedgerCreatedTimestamp
public java.lang.String lastLedgerCreatedTimestamp
The time when the last ledger is created.
-
lastLedgerCreationFailureTimestamp
public java.lang.String lastLedgerCreationFailureTimestamp
The time when the last ledger failed.
-
waitingCursorsCount
public int waitingCursorsCount
The number of cursors that are "caught up" and waiting for a new message to be published.
-
pendingAddEntriesCount
public int pendingAddEntriesCount
The number of messages that complete (asynchronous) write requests.
-
lastConfirmedEntry
public java.lang.String 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
public java.lang.String state
The state of this ledger for writing. The state LedgerOpened means that a ledger is open for saving published messages.
-
ledgers
public java.util.List<ManagedLedgerInternalStats.LedgerInfo> ledgers
The ordered list of all ledgers for this topic holding messages.
-
cursors
public java.util.Map<java.lang.String,ManagedLedgerInternalStats.CursorStats> cursors
The list of all cursors on this topic. Each subscription in the topic stats has a cursor.
-
-