接口 ManagedCursorMXBean
- 所有已知实现类:
ManagedCursorMXBeanImpl
@LimitedPrivate
@Stable
public interface ManagedCursorMXBean
JMX Bean interface for ManagedCursor stats.
-
方法概要
修饰符和类型方法说明voidaddReadCursorLedgerSize(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.
-
方法详细资料
-
getName
String getName()- 返回:
- the ManagedCursor name
-
getLedgerName
String getLedgerName()- 返回:
- the ManagedLedger name
-
persistToLedger
void persistToLedger(boolean success) persist cursor by ledger.- 参数:
success-
-
persistToZookeeper
void persistToZookeeper(boolean success) persist cursor by zookeeper.- 参数:
success-
-
getPersistLedgerSucceed
long getPersistLedgerSucceed()- 返回:
- the number of persist cursor by ledger that succeed
-
getPersistLedgerErrors
long getPersistLedgerErrors()- 返回:
- the number of persist cursor by ledger that failed
-
getPersistZookeeperSucceed
long getPersistZookeeperSucceed()- 返回:
- the number of persist cursor by zookeeper that succeed
-
getPersistZookeeperErrors
long getPersistZookeeperErrors()- 返回:
- 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.- 参数:
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).- 参数:
size- Size of data read from cursor (in bytes)
-
getWriteCursorLedgerSize
long getWriteCursorLedgerSize()- 返回:
- the size of data written to cursor (in bytes)
-
getWriteCursorLedgerLogicalSize
long getWriteCursorLedgerLogicalSize()- 返回:
- the size of data written to cursor without replicas (in bytes)
-
getReadCursorLedgerSize
long getReadCursorLedgerSize()- 返回:
- the size of data read from cursor (in bytes)
-