Interface RemoteExtractionPlugin
-
- All Superinterfaces:
BaseExtractionPlugin
- All Known Implementing Classes:
ExtractionPluginClient
public interface RemoteExtractionPlugin extends BaseExtractionPlugin
ExtractionPluginfor client side implementations. Compared to other extraction plugins, it expects a specific types ofTracebeing processed (seeprocess(ClientTrace, ClientDataContext)and (seeprocessDeferred(ClientTrace, ClientDataContext, TraceSearcher).The reason for this is that it is used to simplify the implementation for creating children over a gRPC network. See
ClientTracefor more information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisCompatible()Checks that the API implemented by the remote plugin is compatible with the currently loaded (runtime) Extraction Plugin SDK version.voidprocess(ClientTrace trace, ClientDataContext dataContext)SeeExtractionPlugin.process(Trace, DataContext), but requires a special type ofTrace.voidprocessDeferred(ClientTrace trace, ClientDataContext dataContext, TraceSearcher searcher)SeeExtractionPlugin.process(Trace, DataContext), but requires a special type ofTrace.-
Methods inherited from interface org.hansken.plugin.extraction.api.BaseExtractionPlugin
pluginInfo
-
-
-
-
Method Detail
-
isCompatible
boolean isCompatible()
Checks that the API implemented by the remote plugin is compatible with the currently loaded (runtime) Extraction Plugin SDK version.- Returns:
- true if compatible, false otherwise
-
process
void process(ClientTrace trace, ClientDataContext dataContext) throws IOException
SeeExtractionPlugin.process(Trace, DataContext), but requires a special type ofTrace.- Parameters:
trace- the trace to processdataContext- data context of this trace extraction- Throws:
IOException- when an I/O error occurs
-
processDeferred
void processDeferred(ClientTrace trace, ClientDataContext dataContext, TraceSearcher searcher) throws IOException
SeeExtractionPlugin.process(Trace, DataContext), but requires a special type ofTrace.- Parameters:
trace- the trace to processdataContext- data context of this trace extractionsearcher- the trace searcher- Throws:
IOException- when an I/O error occurs
-
-