public class DataRegionMetricsImpl extends Object implements DataRegionMetrics, AllocatedPageTracker
| Constructor and Description |
|---|
DataRegionMetricsImpl(DataRegionConfiguration memPlcCfg) |
DataRegionMetricsImpl(DataRegionConfiguration memPlcCfg,
IgniteOutClosure<Long> freeSpaceProvider) |
| Modifier and Type | Method and Description |
|---|---|
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 |
getCheckpointBufferPages()
Gets checkpoint buffer size in pages.
|
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.
|
CacheGroupMetricsMXBeanImpl.GroupAllocationTrucker |
getOrAllocateGroupPageAllocationTracker(int grpId)
Get or allocate group allocation trucker.
|
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.
|
void |
incrementDirtyPages()
Increments dirtyPages counter.
|
void |
incrementLargeEntriesPages() |
void |
incrementTotalAllocatedPages()
Increments totalAllocatedPages counter.
|
void |
onPageRead()
Updates page read.
|
void |
onPageWritten()
Updates page written.
|
void |
pageMemory(PageMemory pageMem) |
void |
persistenceEnabled(boolean persistenceEnabled) |
void |
rateTimeInterval(long rateTimeInterval) |
void |
resetDirtyPages()
Resets dirtyPages counter to zero.
|
void |
subIntervals(int subInts)
Sets number of subintervals the whole rateTimeInterval will be split into to calculate allocation rate.
|
void |
updateEvictionRate()
Updates eviction rate metric.
|
void |
updateOffHeapSize(long size) |
void |
updatePageReplaceRate(long pageAge)
Updates pageReplaceRate metric.
|
void |
updateTotalAllocatedPages(long delta)
Increments totalAllocatedPages counter.
|
public DataRegionMetricsImpl(DataRegionConfiguration memPlcCfg)
memPlcCfg - DataRegionConfiguration.public DataRegionMetricsImpl(DataRegionConfiguration memPlcCfg, @Nullable IgniteOutClosure<Long> freeSpaceProvider)
memPlcCfg - DataRegionConfiguration.public String getName()
getName in interface DataRegionMetricspublic long getTotalAllocatedPages()
getTotalAllocatedPages 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 getCheckpointBufferPages()
getCheckpointBufferPages 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 updatePageReplaceRate(long pageAge)
public void onPageRead()
public void onPageWritten()
public void incrementDirtyPages()
public void decrementDirtyPages()
public void resetDirtyPages()
public void incrementTotalAllocatedPages()
public void updateTotalAllocatedPages(long delta)
updateTotalAllocatedPages in interface AllocatedPageTrackerdelta - Value to increment by.public CacheGroupMetricsMXBeanImpl.GroupAllocationTrucker getOrAllocateGroupPageAllocationTracker(int grpId)
grpId - Group id.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.public void rateTimeInterval(long rateTimeInterval)
rateTimeInterval - Time interval (in milliseconds) used to calculate allocation/eviction rate.public void subIntervals(int subInts)
subInts - Number of subintervals.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018