Package org.apache.ignite
Class DataRegionMetricsAdapter
- java.lang.Object
-
- org.apache.ignite.DataRegionMetricsAdapter
-
- All Implemented Interfaces:
MemoryMetrics
@Deprecated public class DataRegionMetricsAdapter extends Object implements MemoryMetrics
Deprecated.Check theReadOnlyMetricRegistry
with "name=io.dataregion.{data_region_name}" instead.Converter class fromDataRegionMetrics
to legacyMemoryMetrics
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Collection<MemoryMetrics>
collectionOf(Collection<DataRegionMetrics> dataRegionMetrics)
Deprecated.Converts collection ofDataRegionMetrics
into collection of legacyMemoryMetrics
.float
getAllocationRate()
Deprecated.Gets pages allocation rate of a memory region.long
getDirtyPages()
Deprecated.Gets the number of dirty pages (pages which contents is different from the current persistent storage state).float
getEvictionRate()
Deprecated.Gets eviction rate of a given memory region.float
getLargeEntriesPagesPercentage()
Deprecated.Gets percentage of pages that are fully occupied by large entries that go beyond page size.String
getName()
Deprecated.A name of a memory region the metrics are collected for.float
getPagesFillFactor()
Deprecated.Gets the percentage of space that is still free and can be filled in.float
getPagesReplaceRate()
Deprecated.Gets rate (pages per second) at which pages get replaced with other pages from persistent storage.long
getPhysicalMemoryPages()
Deprecated.Gets total number of pages currently loaded to the RAM.long
getTotalAllocatedPages()
Deprecated.Gets a total number of allocated pages related to the memory policy.static DataRegionMetricsAdapter
valueOf(DataRegionMetrics delegate)
Deprecated.
-
-
-
Method Detail
-
collectionOf
public static Collection<MemoryMetrics> collectionOf(Collection<DataRegionMetrics> dataRegionMetrics)
Deprecated.Converts collection ofDataRegionMetrics
into collection of legacyMemoryMetrics
.- Parameters:
dataRegionMetrics
- Data region metrics collection.- Returns:
- Collection of legacy
MemoryMetrics
.
-
valueOf
public static DataRegionMetricsAdapter valueOf(DataRegionMetrics delegate)
Deprecated.- Parameters:
delegate
- DataRegionMetrics.- Returns:
- Wrapped
DataRegionMetrics
that implementsMemoryMetrics
. Null value is not wrapped and returned as is.
-
getName
public String getName()
Deprecated.A name of a memory region the metrics are collected for.- Specified by:
getName
in interfaceMemoryMetrics
- Returns:
- Name of the memory region.
-
getTotalAllocatedPages
public long getTotalAllocatedPages()
Deprecated.Gets a total number of allocated pages related to the memory policy. When persistence is disabled, this metric shows the total number of pages in memory. When persistence is enabled, this metric shows the total number of pages in memory and on disk.- Specified by:
getTotalAllocatedPages
in interfaceMemoryMetrics
- Returns:
- Total number of allocated pages.
-
getAllocationRate
public float getAllocationRate()
Deprecated.Gets pages allocation rate of a memory region.- Specified by:
getAllocationRate
in interfaceMemoryMetrics
- Returns:
- Number of allocated pages per second.
-
getEvictionRate
public float getEvictionRate()
Deprecated.Gets eviction rate of a given memory region.- Specified by:
getEvictionRate
in interfaceMemoryMetrics
- Returns:
- Number of evicted pages per second.
-
getLargeEntriesPagesPercentage
public float getLargeEntriesPagesPercentage()
Deprecated.Gets percentage of pages that are fully occupied by large entries that go beyond page size. The large entities are split into fragments in a way so that each fragment can fit into a single page.- Specified by:
getLargeEntriesPagesPercentage
in interfaceMemoryMetrics
- Returns:
- Percentage of pages fully occupied by large entities.
-
getPagesFillFactor
public float getPagesFillFactor()
Deprecated.Gets the percentage of space that is still free and can be filled in.- Specified by:
getPagesFillFactor
in interfaceMemoryMetrics
- Returns:
- The percentage of space that is still free and can be filled in.
-
getDirtyPages
public long getDirtyPages()
Deprecated.Gets the number of dirty pages (pages which contents is different from the current persistent storage state). This metric is enabled only for Ignite nodes with enabled persistence.- Specified by:
getDirtyPages
in interfaceMemoryMetrics
- Returns:
- Current number of dirty pages.
-
getPagesReplaceRate
public float getPagesReplaceRate()
Deprecated.Gets rate (pages per second) at which pages get replaced with other pages from persistent storage. The rate effectively represents the rate at which pages get 'evicted' in favor of newly needed pages. This metric is enabled only for Ignite nodes with enabled persistence.- Specified by:
getPagesReplaceRate
in interfaceMemoryMetrics
- Returns:
- Pages per second replace rate.
-
getPhysicalMemoryPages
public long getPhysicalMemoryPages()
Deprecated.Gets total number of pages currently loaded to the RAM. When persistence is disabled, this metric is equal toMemoryMetrics.getTotalAllocatedPages()
.- Specified by:
getPhysicalMemoryPages
in interfaceMemoryMetrics
- Returns:
- Total number of pages loaded to RAM.
-
-