Class MemoryMetrics

java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.MemoryMetrics

@Deprecated(since="4.5", forRemoval=true) @ManagedResource(description="Memory Metrics") public class MemoryMetrics extends AbstractMonitor
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.5
JMX Metrics for Memory
Author:
Mark Pollack
  • Constructor Summary

    Constructors
    Constructor
    Description
    MemoryMetrics(com.mongodb.client.MongoClient mongoClient)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor

    getDb, getMongoClient, getServerStatus, hosts

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MemoryMetrics

      public MemoryMetrics(com.mongodb.client.MongoClient mongoClient)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      mongoClient -
      Since:
      2.2
  • Method Details

    • getBits

      @ManagedMetric(metricType=COUNTER, displayName="Memory address size") public int getBits()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getResidentSpace

      @ManagedMetric(metricType=GAUGE, displayName="Resident in Physical Memory", unit="MB") public int getResidentSpace()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getVirtualAddressSpace

      @ManagedMetric(metricType=GAUGE, displayName="Virtual Address Space", unit="MB") public int getVirtualAddressSpace()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMemoryInfoSupported

      @ManagedMetric(metricType=GAUGE, displayName="Is memory info supported on this platform") public boolean getMemoryInfoSupported()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMemoryMappedSpace

      @ManagedMetric(metricType=GAUGE, displayName="Memory Mapped Space", unit="MB") public int getMemoryMappedSpace()
      Deprecated, for removal: This API element is subject to removal in a future version.