Treatment start

distrib::start


Configuration

⬡ distributor: distrib::DistributionEngine

Parameters

↳ var params: Map (std/data/map::Map)

Inputs

⇥ access: Block<Access> (work/access::Access)

Outputs

↦ error: Block<string>
↦ failed: Block<void>
↦ ready: Block<void>


Treatment start for the DistributionEngine model.

This treatment is responsible for initiating the distribution connection using the supplied access block, which must contain a single Access value describing the remote addresses, port, keys and other connection parameters. The treatment also takes arbitrary params that are forwarded as launch parameters to the remote side.

On a successful start the treatment sends a unit token on ready. If the engine cannot be started it emits a signal on failed followed by an error message on error and triggers a fuse of the distributor so that further attempts are ignored.