module Nn_elect:Election of the coordinatorsig..end
typerole =[ `Coordinator | `Excluded | `Slave | `Unknown ]
val get_role : unit -> role`Unknown if the election is not yet
finished, and `Coordinator or `Slave otherwise.
Can be called from any Netplex container process.
val get_coordinator : unit -> string`Coordinator or `Slave.
Can be called from any Netplex container process.
val elect_e : Nn_config.nn_node_config ->
int -> Unixqueue.event_system -> (bool * string) Uq_engines.engine
Returns (is_coord, rev_ident):
is_coord is true if this is the coordinator.
rev_ident is the revision string.
val setup_elect_api : Rpc_server.t -> Nn_config.nn_node_config -> unitElect procedures are bound