Class OperationCounters
java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.OperationCounters
@Deprecated(since="4.5",
forRemoval=true)
@ManagedResource(description="Operation Counters")
public class OperationCounters
extends AbstractMonitor
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.5
JMX Metrics for Operation counters
- Author:
- Mark Pollack
-
Constructor Summary
ConstructorsConstructorDescriptionOperationCounters
(com.mongodb.client.MongoClient mongoClient) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
getDb, getMongoClient, getServerStatus, hosts
-
Constructor Details
-
OperationCounters
public OperationCounters(com.mongodb.client.MongoClient mongoClient) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mongoClient
-- Since:
- 2.2
-
-
Method Details
-
getInsertCount
@ManagedMetric(metricType=COUNTER, displayName="Insert operation count") public int getInsertCount()Deprecated, for removal: This API element is subject to removal in a future version. -
getQueryCount
Deprecated, for removal: This API element is subject to removal in a future version. -
getUpdateCount
@ManagedMetric(metricType=COUNTER, displayName="Update operation count") public int getUpdateCount()Deprecated, for removal: This API element is subject to removal in a future version. -
getDeleteCount
@ManagedMetric(metricType=COUNTER, displayName="Delete operation count") public int getDeleteCount()Deprecated, for removal: This API element is subject to removal in a future version. -
getGetMoreCount
@ManagedMetric(metricType=COUNTER, displayName="GetMore operation count") public int getGetMoreCount()Deprecated, for removal: This API element is subject to removal in a future version. -
getCommandCount
@ManagedMetric(metricType=COUNTER, displayName="Command operation count") public int getCommandCount()Deprecated, for removal: This API element is subject to removal in a future version.
-