Spring Data Document

org.springframework.data.mongodb.monitor
Class MemoryMetrics

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

@ManagedResource(description="Memory Metrics")
public class MemoryMetrics
extends AbstractMonitor

JMX Metrics for Memory

Author:
Mark Pollack

Field Summary
 
Fields inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
mongo
 
Constructor Summary
MemoryMetrics(Mongo mongo)
           
 
Method Summary
 int getBits()
           
 boolean getMemoryInfoSupported()
           
 int getMemoryMappedSpace()
           
 int getResidentSpace()
           
 int getVirtualAddressSpace()
           
 
Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
getDb, getServerStatus, setPassword, setUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryMetrics

public MemoryMetrics(Mongo mongo)
Method Detail

getBits

@ManagedMetric(metricType=COUNTER,
               displayName="Memory address size")
public int getBits()

getResidentSpace

@ManagedMetric(metricType=GAUGE,
               displayName="Resident in Physical Memory",
               unit="MB")
public int getResidentSpace()

getVirtualAddressSpace

@ManagedMetric(metricType=GAUGE,
               displayName="Virtual Address Space",
               unit="MB")
public int getVirtualAddressSpace()

getMemoryInfoSupported

@ManagedMetric(metricType=GAUGE,
               displayName="Is memory info supported on this platform")
public boolean getMemoryInfoSupported()

getMemoryMappedSpace

@ManagedMetric(metricType=GAUGE,
               displayName="Memory Mapped Space",
               unit="MB")
public int getMemoryMappedSpace()

Spring Data Document

Copyright © 2012. All Rights Reserved.