org.glassfish.grizzly.memory.jmx
Class MemoryManager

java.lang.Object
  extended by org.glassfish.grizzly.monitoring.jmx.JmxObject
      extended by 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

Field Summary
protected  MemoryManager memoryManager
           
 
Constructor Summary
MemoryManager(MemoryManager memoryManager)
           
 
Method Summary
 java.lang.String getJmxName()
           
 java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

memoryManager

protected final MemoryManager memoryManager
Constructor Detail

MemoryManager

public MemoryManager(MemoryManager memoryManager)
Method Detail

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 © 2011 Oracle Corpration. All Rights Reserved.