Interface ExtractionPluginProcessor
-
- All Superinterfaces:
nl.minvenj.nfi.flits.api.FlitsProcessor
- All Known Implementing Classes:
DefaultExtractionPluginProcessor
public interface ExtractionPluginProcessor extends nl.minvenj.nfi.flits.api.FlitsProcessorBase implementation of theFlitsframeworkprocessor, for use withexternal extraction plugins.It is up to the implementation to decide how to translate a test input file to a test case, see for example
DefaultExtractionPluginProcessor- See Also:
EmbeddedExtractionPluginFlits
-
-
Field Summary
Fields Modifier and Type Field Description static TraceToJsonTRACE_TO_JSON
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default nl.minvenj.nfi.flits.api.FlitsResultGeneratorgenerator()Optional<nl.minvenj.nfi.flits.api.FlitsResult>process(org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace trace, org.hansken.plugin.extraction.runtime.grpc.client.api.ClientDataContext context)Optional<nl.minvenj.nfi.flits.api.FlitsResult>processDeferred(org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace trace, org.hansken.plugin.extraction.runtime.grpc.client.api.ClientDataContext context, TraceSearcher searcher)default nl.minvenj.nfi.flits.api.FlitsResultValidatorvalidator()
-
-
-
Field Detail
-
TRACE_TO_JSON
static final TraceToJson TRACE_TO_JSON
-
-
Method Detail
-
generator
default nl.minvenj.nfi.flits.api.FlitsResultGenerator generator()
- Specified by:
generatorin interfacenl.minvenj.nfi.flits.api.FlitsProcessor
-
validator
default nl.minvenj.nfi.flits.api.FlitsResultValidator validator()
- Specified by:
validatorin interfacenl.minvenj.nfi.flits.api.FlitsProcessor
-
process
Optional<nl.minvenj.nfi.flits.api.FlitsResult> process(org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace trace, org.hansken.plugin.extraction.runtime.grpc.client.api.ClientDataContext context)
Process the given inputtrace(which may be empty) andcontexttaken from the input path given to the baseFlitsProcessor.process(Path, Path)method, using a certainplugin.In case of a
metaextraction, the context will have datatype'meta'and no data stream.The given
resultshould contain and describe the outcome. There are three kinds of possible results:EmptyResult: the matcher did not match on the inputThrowableResult: running the plugin resulted in an exception or errorTraceResult: running the plugin resulted in (new) trace information
- Parameters:
trace- the trace to processcontext- context of this trace extraction- Returns:
- the result of processing the given input
-
processDeferred
Optional<nl.minvenj.nfi.flits.api.FlitsResult> processDeferred(org.hansken.plugin.extraction.runtime.grpc.client.api.ClientTrace trace, org.hansken.plugin.extraction.runtime.grpc.client.api.ClientDataContext context, TraceSearcher searcher)
Process the given inputtrace(which may be empty) andcontexttaken from the input path given to the baseFlitsProcessor.process(Path, Path)method, using a certainplugin.searcherwill apply its search method to all traces available from the input path.The given
resultshould contain and describe the outcome. There are three kinds of possible results:EmptyResult: the matcher did not match on the inputThrowableResult: running the plugin resulted in an exception or errorTraceResult: running the plugin resulted in (new) trace information
- Parameters:
trace- the trace to processcontext- context of this trace extractionsearcher- searcher to use for searching additionalSearchTracetraces- Returns:
- the result of processing the given input
-
-