module Nn_datastore_news:Getting news about datastores and their availabilitysig
..end
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
is delayed.
exception Unavailable
wait
option 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 id
has changed and must be reread. If node_opt
is given, it is tried to discover this datanode, and to attach
it to the systemval receive_message : Netplex_types.container -> string -> string array -> unit
receive_message
hook in order to
subscribe to this news channelval post_add_hook : Netplex_types.socket_service -> Netplex_types.controller -> unit
post_add_hook