public class Statistics extends RocksObject
nativeHandle_
owningHandle_
Constructor and Description |
---|
Statistics() |
Statistics(java.util.EnumSet<HistogramType> ignoreHistograms) |
Statistics(java.util.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.
|
java.lang.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.
|
java.lang.String |
toString()
String representation of the statistic object.
|
disposeInternal
close, disOwnNativeHandle, isOwningHandle
dispose, finalize
public Statistics()
public Statistics(Statistics otherStatistics)
public Statistics(java.util.EnumSet<HistogramType> ignoreHistograms)
public Statistics(java.util.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
protected final void disposeInternal(long handle)
disposeInternal
in class RocksObject