pachyderm v0.1.0 Pachyderm.Ecosystems.LocalDisk

An ecosystem that runs on a single node only.

Worker uniqueness is coordinated by the supervision tree. Persistance of worker state is to disk, managed by using dets.

This implementation hits the supervisors alot. We either need an ets backed dynamic supervisor or some combination of registry and dynamic supervisor

Link to this section Summary

Functions

Receive updates whenever this entity state changes

Return the reference to an ecosystem

Reliably send a message to activate an entity

Link to this section Functions

Link to this function follow(address, ecosystem \\ default_ecosystem())

Receive updates whenever this entity state changes.

This call returns the current state of the entity Messages are received in the format {address, state}

Link to this function participate(ecosystem_id)

Return the reference to an ecosystem.

This call will start the ecosystems supervision if it is not already running.

Link to this function send_sync(address, message, ecosystem \\ default_ecosystem())

Reliably send a message to activate an entity.

This call returns the new state of the entity