Package org.github.jamm.listeners
Class NoopMemoryMeterListener
java.lang.Object
org.github.jamm.listeners.NoopMemoryMeterListener
- All Implemented Interfaces:
MemoryMeterListener
Listener that does nothing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.github.jamm.MemoryMeterListener
MemoryMeterListener.Factory -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidarrayElementAdded(Object[] array, int index, Object elementValue) Notification that the element from the specified array has been added.voidbyteBufferRemainingMeasured(ByteBuffer buffer, long size) Notification that the size of the remaining bytes of aByteBufferhave been measured.voiddone(long size) Notification that the entire graph has been measured.voidfailedToAccessField(Object obj, String fieldName, Class<?> fieldType) Notification that the graph could not be fully measured has it failed to access a field.voidfieldAdded(Object obj, String fieldName, Object fieldValue) Notification that the field from the specified object has been added.voidobjectMeasured(Object current, long size) Notification that the size of the specified object has been measured.voidNotification thatMemoryMeteras started analyzing the specified object.
-
Field Details
-
FACTORY
-
-
Method Details
-
objectMeasured
Description copied from interface:MemoryMeterListenerNotification that the size of the specified object has been measured.- Specified by:
objectMeasuredin interfaceMemoryMeterListener- Parameters:
current- the object that has been measuredsize- the object size in bytes
-
byteBufferRemainingMeasured
Description copied from interface:MemoryMeterListenerNotification that the size of the remaining bytes of aByteBufferhave been measured.- Specified by:
byteBufferRemainingMeasuredin interfaceMemoryMeterListener- Parameters:
buffer- theByteBuffersize- the remaining bytes
-
fieldAdded
Description copied from interface:MemoryMeterListenerNotification that the field from the specified object has been added.- Specified by:
fieldAddedin interfaceMemoryMeterListener- Parameters:
obj- the object for which a field has been addedfieldName- the field namefieldValue- the field value
-
arrayElementAdded
Description copied from interface:MemoryMeterListenerNotification that the element from the specified array has been added.- Specified by:
arrayElementAddedin interfaceMemoryMeterListener- Parameters:
array- the array for which an element has been addedindex- the element indexelementValue- the element value
-
done
public void done(long size) Description copied from interface:MemoryMeterListenerNotification that the entire graph has been measured.- Specified by:
donein interfaceMemoryMeterListener- Parameters:
size- the size of the entire graph.
-
failedToAccessField
Description copied from interface:MemoryMeterListenerNotification that the graph could not be fully measured has it failed to access a field.- Specified by:
failedToAccessFieldin interfaceMemoryMeterListener- Parameters:
obj- the object owning the field that could not be accessedfieldName- the field namefieldType- the field type
-
started
Description copied from interface:MemoryMeterListenerNotification thatMemoryMeteras started analyzing the specified object.- Specified by:
startedin interfaceMemoryMeterListener- Parameters:
obj- the object being analyzed
-