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

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

JMX Metrics for Connections

Author:
Mark Pollack

Field Summary
 
Fields inherited from class org.springframework.data.document.mongodb.monitor.AbstractMonitor
mongo
 
Constructor Summary
ConnectionMetrics(Mongo mongo)
          
Method Summary
 int getAvailable()
          
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

ConnectionMetrics

public ConnectionMetrics(Mongo mongo)
Method Detail

getCurrent


getAvailable


getConnectionData

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