Package io.openraven.magpie.api
Interface TerminalPlugin<T>
-
- Type Parameters:
T- The configuration object class to be passed into theMagpiePlugin.init(Object config, Logger logger)init} method. This is a developer-defined Jackson-serializable POJO and should be distributed with the plugin.
- All Superinterfaces:
MagpiePlugin<T>
public interface TerminalPlugin<T> extends MagpiePlugin<T>
A plugin that represents the terminal operation in the Magpie framework. TerminalPlugins will receive discovered assetts viaaccept(MagpieEnvelope)but are responsible for exporting the data to another system or datastore. This may be an output stream (stdout), static file, an RDBMS, MQ, or other.- Author:
- Jason Nichols (jason@openraven.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(MagpieEnvelope env)Accept an incoming discovered asset.-
Methods inherited from interface io.openraven.magpie.api.MagpiePlugin
configType, id, init, shutdown
-
-
-
-
Method Detail
-
accept
void accept(MagpieEnvelope env)
Accept an incoming discovered asset.- Parameters:
env- A container for the asset discovered, in an arbitrary format. JSON is favored by all Magpie-maintained plugins.
-
-