@ManagedResource(description="Operation Counters") public class OperationCounters extends AbstractMonitor
Constructor and Description |
---|
OperationCounters(com.mongodb.client.MongoClient mongoClient) |
Modifier and Type | Method and Description |
---|---|
int |
getCommandCount() |
int |
getDeleteCount() |
int |
getGetMoreCount() |
int |
getInsertCount() |
int |
getQueryCount() |
int |
getUpdateCount() |
getDb, getMongoClient, getServerStatus, hosts
public OperationCounters(com.mongodb.client.MongoClient mongoClient)
mongoClient
- @ManagedMetric(metricType=COUNTER, displayName="Insert operation count") public int getInsertCount()
@ManagedMetric(metricType=COUNTER, displayName="Query operation count") public int getQueryCount()
@ManagedMetric(metricType=COUNTER, displayName="Update operation count") public int getUpdateCount()
@ManagedMetric(metricType=COUNTER, displayName="Delete operation count") public int getDeleteCount()
@ManagedMetric(metricType=COUNTER, displayName="GetMore operation count") public int getGetMoreCount()
@ManagedMetric(metricType=COUNTER, displayName="Command operation count") public int getCommandCount()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.