org.glassfish.grizzly.memory.jmx
Class MemoryManager
java.lang.Object
org.glassfish.grizzly.monitoring.jmx.JmxObject
org.glassfish.grizzly.memory.jmx.MemoryManager
- Direct Known Subclasses:
- ByteBufferManager, HeapMemoryManager
@ManagedObject
@Description(value="Grizzly Memory Manager")
public class MemoryManager
- extends JmxObject
MemoryManager JMX object.
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
memoryManager
protected final MemoryManager memoryManager
MemoryManager
public MemoryManager(MemoryManager memoryManager)
getJmxName
public java.lang.String getJmxName()
- Specified by:
getJmxName in class JmxObject
- Returns:
- the name this managed object should be registered with.
onRegister
protected void onRegister(GrizzlyJmxManager mom,
org.glassfish.gmbal.GmbalMBean bean)
- Description copied from class:
JmxObject
- Method will be called right after this JmxObject is registered by the JMX manager.
- Specified by:
onRegister in class JmxObject
- Parameters:
mom - GrizzlyJmxManager Grizzly JMX manager.bean - GmbalMBean, which represents the registration.
onDeregister
protected void onDeregister(GrizzlyJmxManager mom)
- Description copied from class:
JmxObject
- Method will be called right after this JmxObject is unregistered by the JMX manager.
- Specified by:
onDeregister in class JmxObject
- Parameters:
mom - GrizzlyJmxManager Grizzly JMX manager.
getMemoryManagerType
@NameValue
public java.lang.String getMemoryManagerType()
getTotalAllocatedBytes
@ManagedAttribute(id="total-allocated-bytes")
@Description(value="Total number of allocated bytes (real + pool)")
public long getTotalAllocatedBytes()
getRealAllocatedBytes
@ManagedAttribute(id="real-allocated-bytes")
@Description(value="Total number of bytes allocated using ByteBuffer.allocate(...) operation")
public long getRealAllocatedBytes()
getPoolAllocatedBytes
@ManagedAttribute(id="pool-allocated-bytes")
@Description(value="Total number of bytes allocated from memory pool")
public long getPoolAllocatedBytes()
getPoolReleasedBytes
@ManagedAttribute(id="pool-released-bytes")
@Description(value="Total number of bytes released to memory pool")
public long getPoolReleasedBytes()
Copyright © 2012 Oracle Corporation. All Rights Reserved.