com.espertech.esper.metrics.codahale_metrics.metrics.core
Class VirtualMachineMetrics.BufferPoolStats

java.lang.Object
  extended by com.espertech.esper.metrics.codahale_metrics.metrics.core.VirtualMachineMetrics.BufferPoolStats
Enclosing class:
VirtualMachineMetrics

public static class VirtualMachineMetrics.BufferPoolStats
extends java.lang.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
 

Method Detail

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

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com