Grains.Support.Utils (Grains v1.5.1)

Small function that help with debugging and testing.

Link to this section Summary

Functions

Inject pull_with_tag to all predecessors of short_sender

Inject pull_with_tag to receiver as if it was issued by short_sender

Link to this section Functions

Link to this function

inject_pull(supervisor, short_receiver, short_sender)

This function takes:

  • the grain supervisor pid
  • short name receiver
  • short name sender It send sends a pull to receiver as if it came from sender. receiver needs to be an existing grain in the recipe. sender can be an existing grain or made up.
Link to this function

inject_pull_all(supervisor, short_sender)

This function takes:

  • the grain supervisor pid
  • short name sender It send sends a pull to predecessors of sender sender needs to be an existing grain in the recipe and alive.
Link to this function

inject_pull_all_with_tag(supervisor, short_sender, tag)

Inject pull_with_tag to all predecessors of short_sender

Link to this function

inject_pull_with_tag(supervisor, short_receiver, short_sender, tag)

Inject pull_with_tag to receiver as if it was issued by short_sender

Link to this function

inject_push(supervisor, short_receiver, short_sender, msg)

This function takes:

  • the grain supervisor pid
  • short name receiver
  • short name sender
  • a message msg It send sends a push to receiver with msg as content as if it came from sender. receiver needs to be an existing grain in the recipe. sender can be an existing grain or made up.