Class LLServerMetricsBean
java.lang.Object
com.io7m.looseleaf.server.internal.mx.LLServerMetricsBean
- All Implemented Interfaces:
LLServerMetricsMXBean
The metrics bean implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeletes(long count) Increment the number of deletes performed.voidaddReads(long count) Increment the number of reads performed.voidaddWrites(long count) Increment the number of writes performed.longlonggetReads()long
-
Constructor Details
-
LLServerMetricsBean
public LLServerMetricsBean()The metrics bean implementation.
-
-
Method Details
-
getWrites
public long getWrites()- Specified by:
getWritesin interfaceLLServerMetricsMXBean- Returns:
- The number of writes that have been performed.
-
getReads
public long getReads()- Specified by:
getReadsin interfaceLLServerMetricsMXBean- Returns:
- The number of reads that have been performed.
-
getDeletes
public long getDeletes()- Specified by:
getDeletesin interfaceLLServerMetricsMXBean- Returns:
- The number of deletes that have been performed.
-
addWrites
public void addWrites(long count) Description copied from interface:LLServerMetricsMXBeanIncrement the number of writes performed.- Specified by:
addWritesin interfaceLLServerMetricsMXBean- Parameters:
count- The count to add
-
addReads
public void addReads(long count) Description copied from interface:LLServerMetricsMXBeanIncrement the number of reads performed.- Specified by:
addReadsin interfaceLLServerMetricsMXBean- Parameters:
count- The count to add
-
addDeletes
public void addDeletes(long count) Description copied from interface:LLServerMetricsMXBeanIncrement the number of deletes performed.- Specified by:
addDeletesin interfaceLLServerMetricsMXBean- Parameters:
count- The count to add
-