public class Statistics extends RocksObject
nativeHandle_owningHandle_| Constructor and Description |
|---|
Statistics() |
Statistics(EnumSet<HistogramType> ignoreHistograms) |
Statistics(EnumSet<HistogramType> ignoreHistograms,
Statistics otherStatistics) |
Statistics(Statistics otherStatistics) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disposeInternal(long handle) |
long |
getAndResetTickerCount(TickerType tickerType)
Get the count for a ticker and reset the tickers count.
|
HistogramData |
getHistogramData(HistogramType histogramType)
Gets the histogram data for a particular histogram.
|
String |
getHistogramString(HistogramType histogramType)
Gets a string representation of a particular histogram.
|
long |
getTickerCount(TickerType tickerType)
Get the count for a ticker.
|
void |
reset()
Resets all ticker and histogram stats.
|
void |
setStatsLevel(StatsLevel statsLevel)
Sets the stats level.
|
StatsLevel |
statsLevel()
Gets the current stats level.
|
String |
toString()
String representation of the statistic object.
|
disposeInternal, getNativeHandleclose, disOwnNativeHandle, isOwningHandledispose, finalizepublic Statistics()
public Statistics(Statistics otherStatistics)
public Statistics(EnumSet<HistogramType> ignoreHistograms)
public Statistics(EnumSet<HistogramType> ignoreHistograms, Statistics otherStatistics)
public StatsLevel statsLevel()
public void setStatsLevel(StatsLevel statsLevel)
statsLevel - The stats level to set.public long getTickerCount(TickerType tickerType)
tickerType - The ticker to get the count forpublic long getAndResetTickerCount(TickerType tickerType)
tickerType - The ticker to get the count forpublic HistogramData getHistogramData(HistogramType histogramType)
histogramType - The histogram to retrieve the data forpublic String getHistogramString(HistogramType histogramType)
histogramType - The histogram to retrieve the data forpublic void reset()
throws RocksDBException
RocksDBException - if an error occurs when resetting the statistics.public String toString()
protected final void disposeInternal(long handle)
disposeInternal in class RocksObjectCopyright © 2021. All rights reserved.