Class SyntheticAttributeExtension
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.parser.synthetic.SyntheticAttributeExtension
-
- All Implemented Interfaces:
IParserExtension
public class SyntheticAttributeExtension extends java.lang.Object implements IParserExtension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSyntheticAttributeExtension.ModuleExportSink
-
Field Summary
Fields Modifier and Type Field Description private static IAttribute<IMCThread>ALLOC_STATISTICS_THREADprivate static IAttribute<IMCStackTrace>EXECUTION_SAMPLES_STACKTRACEprivate static IAttribute<IMCThread>EXECUTION_SAMPLES_THREAD(package private) static IAttribute<LabeledIdentifier>REC_SETTING_EVENT_ID_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description SyntheticAttributeExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IEventSinkFactorygetEventSinkFactory(IEventSinkFactory sf)Get a new event sink factory for use during the reading of one Flight Recording.java.lang.StringgetValueInterpretation(java.lang.String eventTypeId, java.lang.String fieldId)Override the value interpretation.
-
-
-
Field Detail
-
EXECUTION_SAMPLES_STACKTRACE
private static final IAttribute<IMCStackTrace> EXECUTION_SAMPLES_STACKTRACE
-
EXECUTION_SAMPLES_THREAD
private static final IAttribute<IMCThread> EXECUTION_SAMPLES_THREAD
-
ALLOC_STATISTICS_THREAD
private static final IAttribute<IMCThread> ALLOC_STATISTICS_THREAD
-
REC_SETTING_EVENT_ID_ATTRIBUTE
static final IAttribute<LabeledIdentifier> REC_SETTING_EVENT_ID_ATTRIBUTE
-
-
Method Detail
-
getEventSinkFactory
public IEventSinkFactory getEventSinkFactory(IEventSinkFactory sf)
Description copied from interface:IParserExtensionGet a new event sink factory for use during the reading of one Flight Recording.Note that it is the implementor's responsibility to make sure that the subfactory is used by the event sink factory. If the
IEventSinkFactory.createcall is not chained to the subfactory, then events will be lost.- Specified by:
getEventSinkFactoryin interfaceIParserExtension- Parameters:
sf- Subfactory to nest. Events created by the returned factory will normally be passed on to sinks created by the nested subfactory.- Returns:
- a new event sink factory
-
getValueInterpretation
public java.lang.String getValueInterpretation(java.lang.String eventTypeId, java.lang.String fieldId)Description copied from interface:IParserExtensionOverride the value interpretation. If not overridden the values types are automatically selected from the read metadata. This is only used for a special case in Mission Control code so normallynullshould be returned.- Specified by:
getValueInterpretationin interfaceIParserExtension- Parameters:
eventTypeId- event type ID to get interpretation forfieldId- field ID within the event type to get interpretation for- Returns:
- the identifier of the value interpretation or
nullto use the default interpretation
-
-