@ManagedResource(description="Btree Metrics") public class BtreeIndexCounters extends AbstractMonitor
Constructor and Description |
---|
BtreeIndexCounters(com.mongodb.MongoClient mongoClient)
Deprecated.
since 2.2 in favor of
BtreeIndexCounters(com.mongodb.client.MongoClient) |
BtreeIndexCounters(com.mongodb.client.MongoClient mongoClient) |
Modifier and Type | Method and Description |
---|---|
int |
getAccesses() |
int |
getHits() |
int |
getMisses() |
int |
getMissRatio() |
int |
getResets() |
getDb, getMongoClient, getServerStatus, hosts
@Deprecated public BtreeIndexCounters(com.mongodb.MongoClient mongoClient)
BtreeIndexCounters(com.mongodb.client.MongoClient)
mongoClient
- public BtreeIndexCounters(com.mongodb.client.MongoClient mongoClient)
mongoClient
- must not be null.@ManagedMetric(metricType=GAUGE, displayName="Accesses") public int getAccesses()
@ManagedMetric(metricType=GAUGE, displayName="Hits") public int getHits()
@ManagedMetric(metricType=GAUGE, displayName="Misses") public int getMisses()
@ManagedMetric(metricType=GAUGE, displayName="Resets") public int getResets()
@ManagedMetric(metricType=GAUGE, displayName="Miss Ratio") public int getMissRatio()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.