Top Description Inners Fields Constructors Methods
org.glassfish.grizzly.memory.jmx

public Class MemoryManager

extends JmxObject
Class Inheritance
Known Direct Subclasses
org.glassfish.grizzly.memory.jmx.ByteBufferManager, org.glassfish.grizzly.memory.jmx.HeapMemoryManager
Annotations
@ManagedObject
@Description:Grizzly Memory Manager
Imports
org.glassfish.grizzly.monitoring.jmx.JmxObject, org.glassfish.grizzly.memory.MemoryProbe, java.util.concurrent.atomic.AtomicLong, org.glassfish.gmbal.Description, .GmbalMBean, .ManagedAttribute, .ManagedObject, .NameValue, org.glassfish.grizzly.jmxbase.GrizzlyJmxManager

org.glassfish.grizzly.memory.MemoryManager JMX object.
Author
Alexey Stashok

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
protected final MemoryManager<E extends Buffer>
private final AtomicLong
private final AtomicLong
private final MemoryProbe
private final AtomicLong
private final AtomicLong

Constructor Summary

AccessConstructor and Description
public
MemoryManager(MemoryManager<E extends Buffer> memoryManager)

Method Summary

Modifier and TypeMethod and Description
public String
public String
public long
public long
public long
public long
protected void
onDeregister(GrizzlyJmxManager mom)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Method will be called right after this JmxObject is unregistered by the JMX manager.

protected void
onRegister(GrizzlyJmxManager mom, GmbalMBean bean)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Method will be called right after this JmxObject is registered by the JMX manager.

Field Detail

memoryManagerback to summary
protected final MemoryManager<E extends Buffer> memoryManager
poolAllocatedBytesback to summary
private final AtomicLong poolAllocatedBytes
poolReleasedBytesback to summary
private final AtomicLong poolReleasedBytes
probeback to summary
private final MemoryProbe probe
realAllocatedBytesback to summary
private final AtomicLong realAllocatedBytes
totalAllocatedBytesback to summary
private final AtomicLong totalAllocatedBytes

Constructor Detail

MemoryManagerback to summary
public MemoryManager(MemoryManager<E extends Buffer> memoryManager)

Method Detail

getJmxNameback to summary
public String getJmxName()

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.getJmxName.

Annotations
@Override
getMemoryManagerTypeback to summary
public String getMemoryManagerType()
Annotations
@NameValue
getPoolAllocatedBytesback to summary
public long getPoolAllocatedBytes()
Annotations
@ManagedAttribute
id:pool-allocated-bytes
@Description:Total number of bytes allocated from memory pool
getPoolReleasedBytesback to summary
public long getPoolReleasedBytes()
Annotations
@ManagedAttribute
id:pool-released-bytes
@Description:Total number of bytes released to memory pool
getRealAllocatedBytesback to summary
public long getRealAllocatedBytes()
Annotations
@ManagedAttribute
id:real-allocated-bytes
@Description:Total number of bytes allocated using ByteBuffer.allocate(...) operation
getTotalAllocatedBytesback to summary
public long getTotalAllocatedBytes()
Annotations
@ManagedAttribute
id:total-allocated-bytes
@Description:Total number of allocated bytes (real + pool)
onDeregisterback to summary
protected void onDeregister(GrizzlyJmxManager mom)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Doc from org.glassfish.grizzly.monitoring.jmx.JmxObject.onDeregister.

Method will be called right after this JmxObject is unregistered by the JMX manager.

Annotations
@Override
@SuppressWarnings:unchecked
onRegisterback to summary
protected void onRegister(GrizzlyJmxManager mom, GmbalMBean bean)

Implements abstract org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Doc from org.glassfish.grizzly.monitoring.jmx.JmxObject.onRegister.

Method will be called right after this JmxObject is registered by the JMX manager.

Annotations
@Override
@SuppressWarnings:unchecked
org.glassfish.grizzly.memory.jmx back to summary

private Class MemoryManager.JmxMemoryProbe

extends Object
implements MemoryProbe
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.memory.jmx.MemoryManager.JmxMemoryProbe
All Implemented Interfaces
org.glassfish.grizzly.memory.MemoryProbe

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
onBufferAllocateEvent(int size)

Implements org.glassfish.grizzly.memory.MemoryProbe.onBufferAllocateEvent.

Called by MemoryManager, when new buffer gets allocated

public void
onBufferAllocateFromPoolEvent(int size)

Implements org.glassfish.grizzly.memory.MemoryProbe.onBufferAllocateFromPoolEvent.

Called by MemoryManager, when buffer gets allocated from some pool

public void
onBufferReleaseToPoolEvent(int size)

Implements org.glassfish.grizzly.memory.MemoryProbe.onBufferReleaseToPoolEvent.

Called by MemoryManager, when buffer gets released into a buffer pool

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JmxMemoryProbeback to summary
private JmxMemoryProbe()

Method Detail

onBufferAllocateEventback to summary
public void onBufferAllocateEvent(int size)

Implements org.glassfish.grizzly.memory.MemoryProbe.onBufferAllocateEvent.

Doc from org.glassfish.grizzly.memory.MemoryProbe.onBufferAllocateEvent.

Called by MemoryManager, when new buffer gets allocated

Annotations
@Override
onBufferAllocateFromPoolEventback to summary
public void onBufferAllocateFromPoolEvent(int size)

Implements org.glassfish.grizzly.memory.MemoryProbe.onBufferAllocateFromPoolEvent.

Doc from org.glassfish.grizzly.memory.MemoryProbe.onBufferAllocateFromPoolEvent.

Called by MemoryManager, when buffer gets allocated from some pool

Annotations
@Override
onBufferReleaseToPoolEventback to summary
public void onBufferReleaseToPoolEvent(int size)

Implements org.glassfish.grizzly.memory.MemoryProbe.onBufferReleaseToPoolEvent.

Doc from org.glassfish.grizzly.memory.MemoryProbe.onBufferReleaseToPoolEvent.

Called by MemoryManager, when buffer gets released into a buffer pool

Annotations
@Override