alternera_plugin_hosts

Copy Markdown View Source

The plugin hosts' runtime: code in another language, run in OS processes the proxy supervises, and the pipeline step that calls them. It holds no plugin. Two plugin packages are built on it, each a kind of host (Alternera.PluginHosts.Kind):

  • alternera_plugin_camel, the Camel step, for Apache Camel routes;
  • alternera_plugin_command, the Command step, for any other program that speaks the protocol.

It builds on alternera_plugin_sdk and alternera_plugin_editor and calls nothing of the proxy, so it can move into the SDK later.

  • Alternera.PluginHosts: a kind's hosts, as its plugin's application env lists them, and calls to them;
  • PluginHosts.Host, Pool, Frame: one OS process, a pool of them, the frames on file descriptors 3 and 4 (JSON or MessagePack);
  • PluginHosts.Supervisor: one per kind, started by the kind's package;
  • PluginHosts.Endpoint, HttpCall: the HTTP channel, under each kind's host suffix;
  • PluginHosts.Step, StepEditor: the step and its editor, which each plugin runs with its own wording.

test/ here checks that two kinds keep their hosts apart (mix test). The hosts themselves run in the Camel package's tests, and the steps through the pipelines in the proxy's test/ tree. The internals chapter is docs/internals.adoc, included by the book docs/internals.adoc at the root of this repository.

Licence

Licensed under the Apache License, Version 2.0 (LICENSE, NOTICE). Alternera itself, the proxy this package plugs into, is under the Elastic License 2.0.