@ManagedResource(description="Background Flushing Metrics") public class BackgroundFlushingMetrics extends AbstractMonitor
mongo
Constructor and Description |
---|
BackgroundFlushingMetrics(com.mongodb.Mongo mongo) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageMs() |
int |
getFlushes() |
Date |
getLastFinished() |
int |
getLastMs() |
int |
getTotalMs() |
getDb, getServerStatus, setPassword, setUsername
public BackgroundFlushingMetrics(com.mongodb.Mongo mongo)
@ManagedMetric(metricType=COUNTER, displayName="Flushes") public int getFlushes()
@ManagedMetric(metricType=COUNTER, displayName="Total ms", unit="ms") public int getTotalMs()
@ManagedMetric(metricType=GAUGE, displayName="Average ms", unit="ms") public double getAverageMs()
@ManagedMetric(metricType=GAUGE, displayName="Last Ms", unit="ms") public int getLastMs()
@ManagedMetric(metricType=GAUGE, displayName="Last finished") public Date getLastFinished()
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.