Model DistributionEngine

distrib::DistributionEngine


Parameters

↳ const treatment: string
↳ const version: string


The DistributionEngine model handles remote distribution of Mélodium treatments. It connects to a distant engine using the provided access configuration, negotiates protocol compatibility, and then loads and launches a treatment identified by the model parameters. Once started it maintains an asynchronous connection and keeps track of distributed instances and tracks allowing the local engine to send inputs and receive outputs, logs and debugging information.

Parameters:

  • treatment – identifier of the treatment to execute on the remote engine.
  • version – version of the treatment (must be a valid SemVer).