cloister v0.5.0 Cloister.Monitor View Source

The actual process that performs the monitoring of the cluster and invokes callbacks.

This process is started and supervised by Cloister.Manager.

Link to this section Summary

Types

Statuses the node running the code might be in regard to cloister

t()

The monitor internal state

Functions

Returns a specification to start this module under a supervisor.

Rehashes the ring and returns the current state

Returns the nodes in the cluster that are connected to this one

Returns an internal state of the Node

Link to this section Types

Link to this type

status()

View Source
status() :: :down | :starting | :joined | :up | :stopping | :rehashing | :panic

Statuses the node running the code might be in regard to cloister

Link to this type

t()

View Source
t() :: %Cloister.Monitor{
  otp_app: atom(),
  listener: module(),
  started_at: DateTime.t(),
  status: status(),
  alive?: boolean(),
  clustered?: boolean(),
  sentry?: boolean(),
  ring: atom()
}

The monitor internal state

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Rehashes the ring and returns the current state

Link to this function

siblings()

View Source
siblings() :: [node()]

Returns the nodes in the cluster that are connected to this one

Returns an internal state of the Node