Interface TerminalPlugin<T>

  • Type Parameters:
    T - The configuration object class to be passed into the MagpiePlugin.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 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 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.