module Nn_datastore_news:Getting news about datastores and their availability
The following functions assume an arbitrary Netplex container as environment (i.e. any process). The feed is first available when the first notification message has arrived.
Due to the nature of a feed, the information about datastore updates
waitoption is not set.
val force :
unit -> unit
val list :
?wait:bool -> unit -> Nn_datastores.datastore list
val get :
?wait:bool -> string -> Nn_datastores.datastore
val is_alive :
?wait:bool -> string -> bool
is_alive identity: Returns whether the datanode having this store is good as seen by the monitor. Fails if the monitor is not started.
val signal_db_change :
int -> Unix.sockaddr option -> unit
signal_db_change id node_opt: Signal to the monitor that the db row with
idhas changed and must be reread. If
node_optis given, it is tried to discover this datanode, and to attach it to the system
val receive_message :
Netplex_types.container -> string -> string array -> unit
receive_messagehook in order to subscribe to this news channel
val post_add_hook :
Netplex_types.socket_service -> Netplex_types.controller -> unit