Interface ExtractionPluginProcessor
- All Superinterfaces:
nl.minvenj.nfi.flits.api.FlitsProcessor
- All Known Implementing Classes:
DefaultExtractionPluginProcessor
public interface ExtractionPluginProcessor
extends nl.minvenj.nfi.flits.api.FlitsProcessor
Base implementation of the
Flits framework processor, for use with
external 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:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault nl.minvenj.nfi.flits.api.FlitsResultGeneratorOptional<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.FlitsResultValidatorMethods inherited from interface nl.minvenj.nfi.flits.api.FlitsProcessor
name, process, process
-
Field Details
-
TRACE_TO_JSON
-
-
Method Details
-
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
-