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

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(Mongo mongo)
          
Method Summary
private  int getCurrentQueue(java.lang.String key)
          
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(Mongo mongo)
Method Detail

getTotalTime


getLockTime


getLockTimeRatio


getCurrentQueueTotal


getCurrentQueueReaders


getCurrentQueueWriters


getGlobalLockData

private <T> T getGlobalLockData(java.lang.String key,
                                java.lang.Class<T> targetClass)

getCurrentQueue

private int getCurrentQueue(java.lang.String key)