Spring Data Document

org.springframework.data.mongodb.monitor
Class GlobalLockMetrics

java.lang.Object
  extended by org.springframework.data.mongodb.monitor.AbstractMonitor
      extended by org.springframework.data.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.mongodb.monitor.AbstractMonitor
mongo
 
Constructor Summary
GlobalLockMetrics(Mongo mongo)
           
 
Method Summary
 int getCurrentQueueReaders()
           
 int getCurrentQueueTotal()
           
 int getCurrentQueueWriters()
           
 double getLockTime()
           
 double getLockTimeRatio()
           
 double getTotalTime()
           
 
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

GlobalLockMetrics

public GlobalLockMetrics(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()

Spring Data Document

Copyright © 2012. All Rights Reserved.