@ManagedObject @Description(value="Grizzly Memory Manager") public class MemoryManager extends JmxObject
MemoryManager JMX object.| Modifier and Type | Field and Description |
|---|---|
protected MemoryManager |
memoryManager |
| Constructor and Description |
|---|
MemoryManager(MemoryManager memoryManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
getJmxName() |
String |
getMemoryManagerType() |
long |
getPoolAllocatedBytes() |
long |
getPoolReleasedBytes() |
long |
getRealAllocatedBytes() |
long |
getTotalAllocatedBytes() |
protected void |
onDeregister(GrizzlyJmxManager mom)
Method will be called right after this JmxObject is unregistered by the JMX manager.
|
protected void |
onRegister(GrizzlyJmxManager mom,
org.glassfish.gmbal.GmbalMBean bean)
Method will be called right after this JmxObject is registered by the JMX manager.
|
protected final MemoryManager memoryManager
public MemoryManager(MemoryManager memoryManager)
public String getJmxName()
getJmxName in class JmxObjectprotected void onRegister(GrizzlyJmxManager mom, org.glassfish.gmbal.GmbalMBean bean)
JmxObjectonRegister in class JmxObjectmom - GrizzlyJmxManager Grizzly JMX manager.bean - GmbalMBean, which represents the registration.protected void onDeregister(GrizzlyJmxManager mom)
JmxObjectonDeregister in class JmxObjectmom - GrizzlyJmxManager Grizzly JMX manager.@NameValue public String getMemoryManagerType()
@ManagedAttribute(id="total-allocated-bytes") @Description(value="Total number of allocated bytes (real + pool)") public long getTotalAllocatedBytes()
@ManagedAttribute(id="real-allocated-bytes") @Description(value="Total number of bytes allocated using ByteBuffer.allocate(...) operation") public long getRealAllocatedBytes()
@ManagedAttribute(id="pool-allocated-bytes") @Description(value="Total number of bytes allocated from memory pool") public long getPoolAllocatedBytes()
@ManagedAttribute(id="pool-released-bytes") @Description(value="Total number of bytes released to memory pool") public long getPoolReleasedBytes()
Copyright © 2013 Oracle Corporation. All Rights Reserved.