Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferPoolMXBean extends PlatformManagedObject
The management interface for a buffer pool.
A class implementing this interface is an MXBean. A Java
virtual machine has one or more implementations of this interface. The getPlatformMXBeans
method can be used to obtain the list of BufferPoolMXBean
objects
representing the management interfaces for pools of buffers as follows:
List<BufferPoolMXBean> pools = ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class);
The management interfaces are also registered with the platform MBeanServer
. The ObjectName
that uniquely identifies the
management interface within the MBeanServer
takes the form:
java.nio:type=BufferPool,name=pool namewhere pool name is the
name
of the buffer pool.
Modifier and Type | Method and Description |
---|---|
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. |
String |
getName()
Returns the name representing this buffer pool. |
long |
getTotalCapacity()
Returns an estimate of the total capacity of the buffers in this pool. |
Methods inherited from interface java.lang.management.PlatformManagedObject |
---|
getObjectName |
Method Detail |
---|
String getName()
long getCount()
long getTotalCapacity()
long getMemoryUsed()
capacity
of
the buffers in this pool. This difference is explained by alignment,
memory allocator, and other implementation specific reasons.
-1L
if an estimate of
the memory usage is not available
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.