public class MemoryMetricsImpl extends Object implements MemoryMetrics
| Constructor and Description |
|---|
MemoryMetricsImpl(MemoryPolicyConfiguration memPlcCfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrementLargeEntriesPages() |
void |
disableMetrics() |
void |
enableMetrics() |
float |
getAllocationRate()
Gets pages allocation rate of a memory region.
|
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.
|
long |
getTotalAllocatedPages()
Gets a total number of allocated pages in a memory region.
|
void |
incrementLargeEntriesPages() |
void |
incrementTotalAllocatedPages()
Increments totalAllocatedPages counter.
|
void |
rateTimeInterval(int rateTimeInterval) |
void |
subIntervals(int subInts)
Sets number of subintervals the whole rateTimeInterval will be split into to calculate allocation rate.
|
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 void incrementTotalAllocatedPages()
public void incrementLargeEntriesPages()
public void decrementLargeEntriesPages()
public void enableMetrics()
public void disableMetrics()
public void rateTimeInterval(int rateTimeInterval)
rateTimeInterval - Time interval used to calculate allocation/eviction rate.public void subIntervals(int subInts)
subInts - Number of subintervals.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017