Class SettingsTransformer.FixCodeCacheSink
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.parser.synthetic.SettingsTransformer.FixCodeCacheSink
-
- All Implemented Interfaces:
IEventSink
- Enclosing class:
- SettingsTransformer
private static class SettingsTransformer.FixCodeCacheSink extends java.lang.Object implements IEventSink
Fix for JDK-8157024, the code cache stats unallocatedCapacity event is written as KiB but reported as B. This is fixed in JDK9, but we need to perform this transformation for recordings from JDK8 and earlier.
-
-
Field Summary
Fields Modifier and Type Field Description private IEventSink
subSink
private int
unallocatedFieldIndex
-
Constructor Summary
Constructors Constructor Description FixCodeCacheSink(int unallocatedFieldIndex, IEventSink subSink)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEvent(java.lang.Object[] values)
Add a new event to the sink for processing.
-
-
-
Field Detail
-
unallocatedFieldIndex
private int unallocatedFieldIndex
-
subSink
private IEventSink subSink
-
-
Constructor Detail
-
FixCodeCacheSink
public FixCodeCacheSink(int unallocatedFieldIndex, IEventSink subSink)
-
-
Method Detail
-
addEvent
public void addEvent(java.lang.Object[] values)
Description copied from interface:IEventSink
Add a new event to the sink for processing. The sink may modify the event values as it sees fit.The implementation should have one or more subsinks created during the
IEventSinkFactory.create
call. Call addEvent on a subsink to continue the processing of the event. Note that the passed on value array must match the data structure used by the subsink.If no
addEvent
call is made to a subsink, then the event will be effectively filtered out.addEvent
calls to subsinks may be delayed until later calls of this method or in an implementation specific flush method that can be called byIEventSinkFactory.flush
.- Specified by:
addEvent
in interfaceIEventSink
- Parameters:
values
- Event values. The order and data type of the values must match thedataStructure
parameter to theIEventSinkFactory.create
call.
-
-