@ManagedResource(description="Background Flushing Metrics") public class BackgroundFlushingMetrics extends AbstractMonitor
| Constructor and Description |
|---|
BackgroundFlushingMetrics(com.mongodb.MongoClient mongoClient) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageMs() |
int |
getFlushes() |
Date |
getLastFinished() |
int |
getLastMs() |
int |
getTotalMs() |
getDb, getMongoClient, getServerStatuspublic BackgroundFlushingMetrics(com.mongodb.MongoClient mongoClient)
@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–2017 Pivotal Software, Inc.. All rights reserved.