Class ManagedCursorMXBeanImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.ManagedCursorMXBeanImpl
- All Implemented Interfaces:
ManagedCursorMXBean
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
ManagedCursorMXBeanImpl
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceManagedCursorMXBean- Returns:
- the ManagedCursor name
-
getLedgerName
- Specified by:
getLedgerNamein interfaceManagedCursorMXBean- Returns:
- the ManagedLedger name
-
persistToLedger
public void persistToLedger(boolean success) Description copied from interface:ManagedCursorMXBeanpersist cursor by ledger.- Specified by:
persistToLedgerin interfaceManagedCursorMXBean
-
persistToZookeeper
public void persistToZookeeper(boolean success) Description copied from interface:ManagedCursorMXBeanpersist cursor by zookeeper.- Specified by:
persistToZookeeperin interfaceManagedCursorMXBean
-
getPersistLedgerSucceed
public long getPersistLedgerSucceed()- Specified by:
getPersistLedgerSucceedin interfaceManagedCursorMXBean- Returns:
- the number of persist cursor by ledger that succeed
-
getPersistLedgerErrors
public long getPersistLedgerErrors()- Specified by:
getPersistLedgerErrorsin interfaceManagedCursorMXBean- Returns:
- the number of persist cursor by ledger that failed
-
getPersistZookeeperSucceed
public long getPersistZookeeperSucceed()- Specified by:
getPersistZookeeperSucceedin interfaceManagedCursorMXBean- Returns:
- the number of persist cursor by zookeeper that succeed
-
getPersistZookeeperErrors
public long getPersistZookeeperErrors()- Specified by:
getPersistZookeeperErrorsin interfaceManagedCursorMXBean- Returns:
- the number of persist cursor by zookeeper that failed
-
addWriteCursorLedgerSize
public void addWriteCursorLedgerSize(long size) Description copied from interface:ManagedCursorMXBeanAdd write data to a ledger of a cursor (in bytes). This will update writeCursorLedgerLogicalSize and writeCursorLedgerSize.- Specified by:
addWriteCursorLedgerSizein interfaceManagedCursorMXBean- Parameters:
size- Size of data written to cursor (in bytes)
-
addReadCursorLedgerSize
public void addReadCursorLedgerSize(long size) Description copied from interface:ManagedCursorMXBeanAdd read data from a ledger of a cursor (in bytes).- Specified by:
addReadCursorLedgerSizein interfaceManagedCursorMXBean- Parameters:
size- Size of data read from cursor (in bytes)
-
getWriteCursorLedgerSize
public long getWriteCursorLedgerSize()- Specified by:
getWriteCursorLedgerSizein interfaceManagedCursorMXBean- Returns:
- the size of data written to cursor (in bytes)
-
getWriteCursorLedgerLogicalSize
public long getWriteCursorLedgerLogicalSize()- Specified by:
getWriteCursorLedgerLogicalSizein interfaceManagedCursorMXBean- Returns:
- the size of data written to cursor without replicas (in bytes)
-
getReadCursorLedgerSize
public long getReadCursorLedgerSize()- Specified by:
getReadCursorLedgerSizein interfaceManagedCursorMXBean- Returns:
- the size of data read from cursor (in bytes)
-