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 theReadOnlyMetricRegistrywith "name=io.dataregion.{data_region_name}" instead.Converter class fromDataRegionMetricsto 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 ofDataRegionMetricsinto collection of legacyMemoryMetrics.floatgetAllocationRate()Deprecated.Gets pages allocation rate of a memory region.longgetDirtyPages()Deprecated.Gets the number of dirty pages (pages which contents is different from the current persistent storage state).floatgetEvictionRate()Deprecated.Gets eviction rate of a given memory region.floatgetLargeEntriesPagesPercentage()Deprecated.Gets percentage of pages that are fully occupied by large entries that go beyond page size.StringgetName()Deprecated.A name of a memory region the metrics are collected for.floatgetPagesFillFactor()Deprecated.Gets the percentage of space that is still free and can be filled in.floatgetPagesReplaceRate()Deprecated.Gets rate (pages per second) at which pages get replaced with other pages from persistent storage.longgetPhysicalMemoryPages()Deprecated.Gets total number of pages currently loaded to the RAM.longgetTotalAllocatedPages()Deprecated.Gets a total number of allocated pages related to the memory policy.static DataRegionMetricsAdaptervalueOf(DataRegionMetrics delegate)Deprecated.
-
-
-
Method Detail
-
collectionOf
public static Collection<MemoryMetrics> collectionOf(Collection<DataRegionMetrics> dataRegionMetrics)
Deprecated.Converts collection ofDataRegionMetricsinto 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
DataRegionMetricsthat 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:
getNamein 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:
getTotalAllocatedPagesin interfaceMemoryMetrics- Returns:
- Total number of allocated pages.
-
getAllocationRate
public float getAllocationRate()
Deprecated.Gets pages allocation rate of a memory region.- Specified by:
getAllocationRatein interfaceMemoryMetrics- Returns:
- Number of allocated pages per second.
-
getEvictionRate
public float getEvictionRate()
Deprecated.Gets eviction rate of a given memory region.- Specified by:
getEvictionRatein 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:
getLargeEntriesPagesPercentagein 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:
getPagesFillFactorin 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:
getDirtyPagesin 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:
getPagesReplaceRatein 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:
getPhysicalMemoryPagesin interfaceMemoryMetrics- Returns:
- Total number of pages loaded to RAM.
-
-