PaxosKV.Cluster (paxos_kv v0.4.0)

Summary

Functions

Returns a specification to start this module under a supervisor.

Subscribes the caller process or the spcified pid for :quorum_reached and :quorum_lost cluster events. The events are delivered as standard erlang messages.

The opposite of subscribe/0,1. It removes the given pid from the list of subscribed processes.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

cluster_size()

nodes()

nodes_and_cluster_size()

ping()

quorum?()

resize_cluster(new_size)

start_link(opts)

subscribe(pid \\ self())

Subscribes the caller process or the spcified pid for :quorum_reached and :quorum_lost cluster events. The events are delivered as standard erlang messages.

sync_with_node(node)

unsubscribe(pid \\ self())

The opposite of subscribe/0,1. It removes the given pid from the list of subscribed processes.