@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 JmxObject
protected void onRegister(GrizzlyJmxManager mom, org.glassfish.gmbal.GmbalMBean bean)
JmxObject
onRegister
in class JmxObject
mom
- GrizzlyJmxManager
Grizzly JMX manager.bean
- GmbalMBean
, which represents the registration.protected void onDeregister(GrizzlyJmxManager mom)
JmxObject
onDeregister
in class JmxObject
mom
- 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 © 2015 Oracle Corporation. All rights reserved.