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>
A plugin that represents the terminal operation in the Magpie framework. TerminalPlugins will receive discovered
assetts via
accept(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
Modifier and TypeMethodDescriptionvoidaccept(MagpieEnvelope env) Accept an incoming discovered asset.Methods inherited from interface io.openraven.magpie.api.MagpiePlugin
configType, id, init, shutdown
-
Method Details
-
accept
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.
-