Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

Secrets in params follow their transmission policy: local ones make the start fail, reference ones send only their locator, resolved by the remote engine with its own sources, and value ones send their value, over TLS only.

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.