org.springframework.data.document.mongodb.monitor
Class GlobalLockMetrics

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

@ManagedResource(description="Global Lock Metrics")
public class GlobalLockMetrics
extends AbstractMonitor

JMX Metrics for Global Locks

Author:
Mark Pollack

Field Summary
 
Fields inherited from class org.springframework.data.document.mongodb.monitor.AbstractMonitor
mongo
 
Constructor Summary
GlobalLockMetrics(com.mongodb.Mongo mongo)
           
 
Method Summary
 int getCurrentQueueReaders()
           
 int getCurrentQueueTotal()
           
 int getCurrentQueueWriters()
           
 double getLockTime()
           
 double getLockTimeRatio()
           
 double getTotalTime()
           
 
Methods inherited from class org.springframework.data.document.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

GlobalLockMetrics

public GlobalLockMetrics(com.mongodb.Mongo mongo)
Method Detail

getTotalTime

@ManagedMetric(metricType=COUNTER,
               displayName="Total time")
public double getTotalTime()

getLockTime

@ManagedMetric(metricType=COUNTER,
               displayName="Lock time",
               unit="s")
public double getLockTime()

getLockTimeRatio

@ManagedMetric(metricType=GAUGE,
               displayName="Lock time")
public double getLockTimeRatio()

getCurrentQueueTotal

@ManagedMetric(metricType=GAUGE,
               displayName="Current Queue")
public int getCurrentQueueTotal()

getCurrentQueueReaders

@ManagedMetric(metricType=GAUGE,
               displayName="Reader Queue")
public int getCurrentQueueReaders()

getCurrentQueueWriters

@ManagedMetric(metricType=GAUGE,
               displayName="Writer Queue")
public int getCurrentQueueWriters()


Copyright © 2011. All Rights Reserved.