de.is24.util.monitoring.tools
Class VirtualMachineMetrics.BufferPoolStats
java.lang.Object
de.is24.util.monitoring.tools.VirtualMachineMetrics.BufferPoolStats
- Enclosing class:
- VirtualMachineMetrics
public static class VirtualMachineMetrics.BufferPoolStats
- extends Object
The management interface for a buffer pool, for example a pool of direct or mapped
buffers.
|
Method Summary |
long |
getCount()
Returns an estimate of the number of buffers in the pool. |
long |
getMemoryUsed()
Returns an estimate of the memory that the Java virtual machine is using for this buffer
pool. |
long |
getTotalCapacity()
Returns an estimate of the total capacity of the buffers in this pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
count
private final long count
memoryUsed
private final long memoryUsed
totalCapacity
private final long totalCapacity
VirtualMachineMetrics.BufferPoolStats
private VirtualMachineMetrics.BufferPoolStats(long count,
long memoryUsed,
long totalCapacity)
getCount
public long getCount()
- Returns an estimate of the number of buffers in the pool.
- Returns:
- An estimate of the number of buffers in this pool
getMemoryUsed
public long getMemoryUsed()
- Returns an estimate of the memory that the Java virtual machine is using for this buffer
pool. The value returned by this method may differ from the estimate of the total
capacity of the buffers in this pool. This difference is explained by
alignment, memory allocator, and other implementation specific reasons.
- Returns:
- An estimate of the memory that the Java virtual machine is using for this buffer
pool in bytes, or
-1L if an estimate of the memory usage is not
available
getTotalCapacity
public long getTotalCapacity()
- Returns an estimate of the total capacity of the buffers in this pool. A buffer's
capacity is the number of elements it contains and the value returned by this method is
an estimate of the total capacity of buffers in the pool in bytes.
- Returns:
- An estimate of the total capacity of the buffers in this pool in bytes
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.