Package org.apache.bookkeeper.mledger
Interface ManagedCursorMXBean
- All Known Implementing Classes:
ManagedCursorMXBeanImpl
@LimitedPrivate
@Stable
public interface ManagedCursorMXBean
JMX Bean interface for ManagedCursor stats.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddReadCursorLedgerSize(long size) Add read data from a ledger of a cursor (in bytes).voidaddWriteCursorLedgerSize(long size) Add write data to a ledger of a cursor (in bytes).getName()longlonglonglonglonglonglongvoidpersistToLedger(boolean success) persist cursor by ledger.voidpersistToZookeeper(boolean success) persist cursor by zookeeper.
-
Method Details
-
getName
String getName()- Returns:
- the ManagedCursor name
-
getLedgerName
String getLedgerName()- Returns:
- the ManagedLedger name
-
persistToLedger
void persistToLedger(boolean success) persist cursor by ledger.- Parameters:
success-
-
persistToZookeeper
void persistToZookeeper(boolean success) persist cursor by zookeeper.- Parameters:
success-
-
getPersistLedgerSucceed
long getPersistLedgerSucceed()- Returns:
- the number of persist cursor by ledger that succeed
-
getPersistLedgerErrors
long getPersistLedgerErrors()- Returns:
- the number of persist cursor by ledger that failed
-
getPersistZookeeperSucceed
long getPersistZookeeperSucceed()- Returns:
- the number of persist cursor by zookeeper that succeed
-
getPersistZookeeperErrors
long getPersistZookeeperErrors()- Returns:
- the number of persist cursor by zookeeper that failed
-
addWriteCursorLedgerSize
void addWriteCursorLedgerSize(long size) Add write data to a ledger of a cursor (in bytes). This will update writeCursorLedgerLogicalSize and writeCursorLedgerSize.- Parameters:
size- Size of data written to cursor (in bytes)
-
addReadCursorLedgerSize
void addReadCursorLedgerSize(long size) Add read data from a ledger of a cursor (in bytes).- Parameters:
size- Size of data read from cursor (in bytes)
-
getWriteCursorLedgerSize
long getWriteCursorLedgerSize()- Returns:
- the size of data written to cursor (in bytes)
-
getWriteCursorLedgerLogicalSize
long getWriteCursorLedgerLogicalSize()- Returns:
- the size of data written to cursor without replicas (in bytes)
-
getReadCursorLedgerSize
long getReadCursorLedgerSize()- Returns:
- the size of data read from cursor (in bytes)
-