public class DataRegionMetricsImpl extends Object implements DataRegionMetrics
| Modifier and Type | Field and Description |
|---|---|
static String |
DATAREGION_METRICS_PREFIX
Data region metrics prefix.
|
| Constructor and Description |
|---|
DataRegionMetricsImpl(DataRegionConfiguration memPlcCfg,
GridMetricManager mmgr,
DataRegionMetricsProvider dataRegionMetricsProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addThrottlingTime(long time) |
void |
clear()
Clear metrics.
|
void |
decrementDirtyPages()
Decrements dirtyPages counter.
|
void |
decrementLargeEntriesPages() |
void |
disableMetrics()
Disable metrics.
|
void |
enableMetrics()
Enable metrics.
|
float |
getAllocationRate()
Gets pages allocation rate of a memory region.
|
long |
getCheckpointBufferSize()
Gets checkpoint buffer size in bytes.
|
long |
getDirtyPages()
Gets the number of dirty pages (pages which contents is different from the current persistent storage state).
|
float |
getEvictionRate()
Gets eviction rate of a given memory region.
|
float |
getLargeEntriesPagesPercentage()
Gets percentage of pages that are fully occupied by large entries that go beyond page size.
|
String |
getName()
A name of a memory region the metrics are collected for.
|
long |
getOffHeapSize()
Total offheap size in bytes.
|
long |
getOffheapUsedSize()
Total used offheap size in bytes.
|
LongAdderMetric |
getOrAllocateGroupPageAllocationTracker(String grpName)
Get or allocate group allocation tracker.
|
float |
getPagesFillFactor()
Gets the percentage of the used space.
|
int |
getPageSize()
Gets memory page size.
|
long |
getPagesRead()
The number of read pages from last restart.
|
float |
getPagesReplaceAge()
Gets average age (in milliseconds) for the pages being replaced from the disk storage.
|
long |
getPagesReplaced()
The number of replaced pages from last restart .
|
float |
getPagesReplaceRate()
Gets rate (pages per second) at which pages get replaced with other pages from persistent storage.
|
long |
getPagesWritten()
The number of written pages from last restart.
|
long |
getPhysicalMemoryPages()
Gets total number of pages currently loaded to the RAM.
|
long |
getPhysicalMemorySize()
Gets total size of pages loaded to the RAM.
|
long |
getTotalAllocatedPages()
Gets a total number of allocated pages related to the data region.
|
long |
getTotalAllocatedSize()
Gets a total size of memory allocated in the data region.
|
long |
getTotalUsedPages()
Gets a total number of pages used for storing the data.
|
long |
getUsedCheckpointBufferPages()
Gets used checkpoint buffer size in pages.
|
long |
getUsedCheckpointBufferSize()
Gets used checkpoint buffer size in bytes.
|
void |
incrementDirtyPages()
Increments dirtyPages counter.
|
void |
incrementLargeEntriesPages() |
void |
onPageRead()
Updates page read.
|
void |
onPageWritten()
Updates page written.
|
void |
pageMemory(PageMemory pageMem) |
void |
persistenceEnabled(boolean persistenceEnabled) |
void |
rateTimeInterval(long rateTimeInterval)
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
void |
resetDirtyPages()
Resets dirtyPages counter to zero.
|
void |
subIntervals(int subInts)
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
LongAdderMetric |
totalAllocatedPages() |
void |
updateCheckpointBufferSize(long size) |
void |
updateEvictionRate()
Updates eviction rate metric.
|
void |
updateOffHeapSize(long size) |
void |
updatePageReplaceRate(long pageAge)
Updates pageReplaceRate metric.
|
public static final String DATAREGION_METRICS_PREFIX
DataRegionConfiguration.getName() also.
"io.dataregion.default", for example.public DataRegionMetricsImpl(DataRegionConfiguration memPlcCfg, GridMetricManager mmgr, DataRegionMetricsProvider dataRegionMetricsProvider)
memPlcCfg - DataRegionConfiguration.mmgr - Metrics manager.dataRegionMetricsProvider - Data region metrics provider.public String getName()
getName in interface DataRegionMetricspublic long getTotalAllocatedPages()
getTotalAllocatedPages in interface DataRegionMetricspublic long getTotalUsedPages()
E. g. data region contains 1000 allocated pages, and 200 pages are used to store some data, this metric shows 200 used pages. Then the data was partially deleted and 50 pages were totally freed, hence this metric should show 150 used pages.
getTotalUsedPages in interface DataRegionMetricspublic long getTotalAllocatedSize()
getTotalAllocatedSize in interface DataRegionMetricspublic float getAllocationRate()
getAllocationRate in interface DataRegionMetricspublic float getEvictionRate()
getEvictionRate in interface DataRegionMetricspublic float getLargeEntriesPagesPercentage()
getLargeEntriesPagesPercentage in interface DataRegionMetricspublic float getPagesFillFactor()
getPagesFillFactor in interface DataRegionMetricspublic long getDirtyPages()
getDirtyPages in interface DataRegionMetricspublic float getPagesReplaceRate()
getPagesReplaceRate in interface DataRegionMetricspublic float getPagesReplaceAge()
getPagesReplaceAge in interface DataRegionMetricspublic long getPhysicalMemoryPages()
DataRegionMetrics.getTotalAllocatedPages().getPhysicalMemoryPages in interface DataRegionMetricspublic long getPhysicalMemorySize()
DataRegionMetrics.getTotalAllocatedSize().getPhysicalMemorySize in interface DataRegionMetricspublic long getUsedCheckpointBufferPages()
getUsedCheckpointBufferPages in interface DataRegionMetricspublic long getUsedCheckpointBufferSize()
getUsedCheckpointBufferSize in interface DataRegionMetricspublic long getCheckpointBufferSize()
getCheckpointBufferSize in interface DataRegionMetricspublic int getPageSize()
getPageSize in interface DataRegionMetricspublic long getPagesRead()
getPagesRead in interface DataRegionMetricspublic long getPagesWritten()
getPagesWritten in interface DataRegionMetricspublic long getPagesReplaced()
getPagesReplaced in interface DataRegionMetricspublic long getOffHeapSize()
getOffHeapSize in interface DataRegionMetricspublic long getOffheapUsedSize()
getOffheapUsedSize in interface DataRegionMetricspublic void updateOffHeapSize(long size)
size - Region size.public void updateCheckpointBufferSize(long size)
size - Checkpoint buffer size.public void updatePageReplaceRate(long pageAge)
public void onPageRead()
public void onPageWritten()
public void incrementDirtyPages()
public void decrementDirtyPages()
public void resetDirtyPages()
public LongAdderMetric totalAllocatedPages()
public LongAdderMetric getOrAllocateGroupPageAllocationTracker(String grpName)
grpName - Group name.public void updateEvictionRate()
public void incrementLargeEntriesPages()
public void decrementLargeEntriesPages()
public void enableMetrics()
public void disableMetrics()
public void persistenceEnabled(boolean persistenceEnabled)
persistenceEnabled - Persistence enabled.public void pageMemory(PageMemory pageMem)
pageMem - Page mem.@Deprecated public void rateTimeInterval(long rateTimeInterval)
MetricsMxBean.configureHitRateMetric(String, long) instead.rateTimeInterval - Time interval (in milliseconds) used to calculate allocation/eviction rate.@Deprecated public void subIntervals(int subInts)
MetricsMxBean.configureHitRateMetric(String, long) instead.subInts - Number of subintervals.public void clear()
public void addThrottlingTime(long time)
time - Time to add to totalThrottlingTime metric in milliseconds.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020