public class MemoryMetricsImpl extends Object implements MemoryMetrics
| Constructor and Description |
|---|
MemoryMetricsImpl(MemoryPolicyConfiguration memPlcCfg) |
| 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 |
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.
|
float |
getPagesFillFactor()
Gets the percentage of space that is still free and can be filled in.
|
float |
getPagesReplaceRate()
Gets rate (pages per second) at which pages get replaced with other pages from persistent storage.
|
long |
getPhysicalMemoryPages()
Gets total number of pages currently loaded to the RAM.
|
long |
getTotalAllocatedPages()
Gets a total number of allocated pages related to the memory policy.
|
void |
incrementDirtyPages()
Increments dirtyPages counter.
|
void |
incrementLargeEntriesPages() |
void |
incrementTotalAllocatedPages()
Increments totalAllocatedPages counter.
|
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 |
updatePageReplaceRate()
Updates pageReplaceRate metric.
|
public MemoryMetricsImpl(MemoryPolicyConfiguration memPlcCfg)
memPlcCfg - MemoryPolicyConfiguration.public String getName()
getName in interface MemoryMetricspublic long getTotalAllocatedPages()
getTotalAllocatedPages in interface MemoryMetricspublic float getAllocationRate()
getAllocationRate in interface MemoryMetricspublic float getEvictionRate()
getEvictionRate in interface MemoryMetricspublic float getLargeEntriesPagesPercentage()
getLargeEntriesPagesPercentage in interface MemoryMetricspublic float getPagesFillFactor()
getPagesFillFactor in interface MemoryMetricspublic long getDirtyPages()
getDirtyPages in interface MemoryMetricspublic float getPagesReplaceRate()
getPagesReplaceRate in interface MemoryMetricspublic long getPhysicalMemoryPages()
MemoryMetrics.getTotalAllocatedPages().getPhysicalMemoryPages in interface MemoryMetricspublic void updatePageReplaceRate()
public void incrementDirtyPages()
public void decrementDirtyPages()
public void resetDirtyPages()
public void incrementTotalAllocatedPages()
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.1.0 Release Date : July 20 2017