Module rust_corosync::cfg
source · Expand description
cfg is the internal configuration and information library for corosync, it is mainly used by internal tools but may also contain API calls useful to some applications that need detailed information about or control of the operation of corosync and the cluster.
Structs
Callback from track_start. Will be called if another process
requests to shut down corosync. reply_to_shutdown should be called
with a ShutdownReply of either Yes or No.
A handle into the cfg library. returned from initialize and needed for all other calls
Status of a link inside NodeStatus struct
Structure returned from node_status_get, shows all the details of a node
that is known to corosync, including all configured links
Enums
Version of the NodeStatus structure returned from node_status_get
Flags for try_shutdown
Responses for reply_to_shutdown
Trackflags for track_start. None currently supported
Functions
Call any/all active CFG callbacks for this Handle see DispatchFlags for details
Returns a file descriptor to use for poll/select on the CFG handle
Tell another cluster node to shutdown. reason is a string that
will be written to the system log files.
Get the extended status of a node in the cluster (including active links) from its NodeId.
Returns a filled in NodeStatus struct
Reload the cluster configuration on all nodes
Re-open the cluster log files, on this node only
Reply to a shutdown request with Yes or No ShutdownReply
Start tracking for shutdown notifications
Stop tracking for shutdown notifications
Ask this cluster node to shutdown. If ShutdownFlags is set to Request then
it may be refused by other applications
that have registered for shutdown callbacks.