Interface MagpiePlugin<T>

    • Method Detail

      • id

        String id()
        The unique ID of the plugin. The name should follow the form <creator>.<service>.<plugintype>, for example "magpie.aws.discovery". Plugin type should be one
        1. discovery
        2. transform
        3. output
        Or other types that may emerge from usage.
        Returns:
        The unique ID of the plugin
      • init

        void init​(T config,
                  org.slf4j.Logger logger)
        Initialize the plugin with a configuration and Logger interface. Plugins should NOT instantiate their own logger and should instead use the provided one. Printing to stdout may break plugins or pipes relying on output in a certain schema. By default loggers print to stderr.
        Parameters:
        config - A configuration object for this plugin. This is a developer-defined Jackson-serializable POJO and should be distributed with the plugin.
        logger - An SLF4J logger instance to be used as needed.
      • shutdown

        default void shutdown()