Top Description Inners Methods
org.glassfish.grizzly.memory

public Interface MemoryProbe

Known Direct Implementers
org.glassfish.grizzly.memory.MemoryProbe.Adapter

MemoryManager monitoring probe.
Author
Alexey Stashok

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
MemoryProbe.Adapter

MemoryProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.

Method Summary

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

Called by MemoryManager, when new buffer gets allocated

public void
onBufferAllocateFromPoolEvent(int
buffer size
size
)

Called by MemoryManager, when buffer gets allocated from some pool

public void
onBufferReleaseToPoolEvent(int
buffer size
size
)

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

Method Detail

onBufferAllocateEventback to summary
public void onBufferAllocateEvent(int size)

Called by MemoryManager, when new buffer gets allocated

Parameters
size:int

buffer size

onBufferAllocateFromPoolEventback to summary
public void onBufferAllocateFromPoolEvent(int size)

Called by MemoryManager, when buffer gets allocated from some pool

Parameters
size:int

buffer size

onBufferReleaseToPoolEventback to summary
public void onBufferReleaseToPoolEvent(int size)

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

Parameters
size:int

buffer size

org.glassfish.grizzly.memory back to summary

public Class MemoryProbe.Adapter

extends Object
implements MemoryProbe
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.memory.MemoryProbe
Annotations
@SuppressWarnings:UnusedDeclaration

MemoryProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
Since
2.1.9

Constructor Summary

AccessConstructor and Description
public

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

Adapterback to summary
public Adapter()

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