public class DataRegionMetricsAdapter extends Object implements MemoryMetrics
DataRegionMetrics
to legacy MemoryMetrics
.Modifier and Type | Method and Description |
---|---|
static Collection<MemoryMetrics> |
collectionOf(Collection<DataRegionMetrics> dataRegionMetrics)
Converts collection of
DataRegionMetrics into collection of legacy MemoryMetrics . |
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.
|
static DataRegionMetricsAdapter |
valueOf(DataRegionMetrics delegate) |
public static Collection<MemoryMetrics> collectionOf(Collection<DataRegionMetrics> dataRegionMetrics)
DataRegionMetrics
into collection of legacy MemoryMetrics
.dataRegionMetrics
- Data region metrics collection.public static DataRegionMetricsAdapter valueOf(DataRegionMetrics delegate)
delegate
- DataRegionMetrics.DataRegionMetrics
that implements MemoryMetrics
.
Null value is not wrapped and returned as is.public String getName()
getName
in interface MemoryMetrics
public long getTotalAllocatedPages()
getTotalAllocatedPages
in interface MemoryMetrics
public float getAllocationRate()
getAllocationRate
in interface MemoryMetrics
public float getEvictionRate()
getEvictionRate
in interface MemoryMetrics
public float getLargeEntriesPagesPercentage()
getLargeEntriesPagesPercentage
in interface MemoryMetrics
public float getPagesFillFactor()
getPagesFillFactor
in interface MemoryMetrics
public long getDirtyPages()
getDirtyPages
in interface MemoryMetrics
public float getPagesReplaceRate()
getPagesReplaceRate
in interface MemoryMetrics
public long getPhysicalMemoryPages()
MemoryMetrics.getTotalAllocatedPages()
.getPhysicalMemoryPages
in interface MemoryMetrics
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019