Spring Data Document

org.springframework.data.mongodb.monitor
Class BackgroundFlushingMetrics

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

@ManagedResource(description="Background Flushing Metrics")
public class BackgroundFlushingMetrics
extends AbstractMonitor

JMX Metrics for Background Flushing

Author:
Mark Pollack

Field Summary
 
Fields inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
mongo
 
Constructor Summary
BackgroundFlushingMetrics(Mongo mongo)
           
 
Method Summary
 double getAverageMs()
           
 int getFlushes()
           
 Date getLastFinished()
           
 int getLastMs()
           
 int getTotalMs()
           
 
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

BackgroundFlushingMetrics

public BackgroundFlushingMetrics(Mongo mongo)
Method Detail

getFlushes

@ManagedMetric(metricType=COUNTER,
               displayName="Flushes")
public int getFlushes()

getTotalMs

@ManagedMetric(metricType=COUNTER,
               displayName="Total ms",
               unit="ms")
public int getTotalMs()

getAverageMs

@ManagedMetric(metricType=GAUGE,
               displayName="Average ms",
               unit="ms")
public double getAverageMs()

getLastMs

@ManagedMetric(metricType=GAUGE,
               displayName="Last Ms",
               unit="ms")
public int getLastMs()

getLastFinished

@ManagedMetric(metricType=GAUGE,
               displayName="Last finished")
public Date getLastFinished()

Spring Data Document

Copyright © 2012. All Rights Reserved.