pacemaker
2.1.0-7c3f660
Scalable High-Availability cluster resource manager
|
High Level API. More...
#include <glib.h>
#include <libxml/tree.h>
#include <crm/pengine/pe_types.h>
#include <crm/stonith-ng.h>
Go to the source code of this file.
Functions | |
int | pcmk_controller_status (xmlNodePtr *xml, char *dest_node, unsigned int message_timeout_ms) |
Get controller status. More... | |
int | pcmk_designated_controller (xmlNodePtr *xml, unsigned int message_timeout_ms) |
Get designated controller. More... | |
int | pcmk_pacemakerd_status (xmlNodePtr *xml, char *ipc_name, unsigned int message_timeout_ms) |
Get pacemakerd status. More... | |
int | pcmk_resource_digests (xmlNodePtr *xml, pe_resource_t *rsc, pe_node_t *node, GHashTable *overrides, pe_working_set_t *data_set) |
Calculate and output resource operation digests. More... | |
int | pcmk_list_nodes (xmlNodePtr *xml, char *node_types) |
Get nodes list. More... | |
High Level API.
Definition in file pacemaker.h.
int pcmk_controller_status | ( | xmlNodePtr * | xml, |
char * | dest_node, | ||
unsigned int | message_timeout_ms | ||
) |
Get controller status.
[in,out] | xml | The destination for the result, as an XML tree. |
[in] | dest_node | Destination node for request |
[in] | message_timeout_ms | Message timeout |
Definition at line 298 of file pcmk_cluster_queries.c.
int pcmk_designated_controller | ( | xmlNodePtr * | xml, |
unsigned int | message_timeout_ms | ||
) |
Get designated controller.
[in,out] | xml | The destination for the result, as an XML tree. |
[in] | message_timeout_ms | Message timeout |
Definition at line 343 of file pcmk_cluster_queries.c.
int pcmk_list_nodes | ( | xmlNodePtr * | xml, |
char * | node_types | ||
) |
Get nodes list.
[in,out] | xml | The destination for the result, as an XML tree. |
[in] | node_types | Node type(s) to return (default: all) |
Definition at line 495 of file pcmk_cluster_queries.c.
int pcmk_pacemakerd_status | ( | xmlNodePtr * | xml, |
char * | ipc_name, | ||
unsigned int | message_timeout_ms | ||
) |
Get pacemakerd status.
[in,out] | xml | The destination for the result, as an XML tree. |
[in] | ipc_name | IPC name for request |
[in] | message_timeout_ms | Message timeout |
Definition at line 388 of file pcmk_cluster_queries.c.
int pcmk_resource_digests | ( | xmlNodePtr * | xml, |
pe_resource_t * | rsc, | ||
pe_node_t * | node, | ||
GHashTable * | overrides, | ||
pe_working_set_t * | data_set | ||
) |
Calculate and output resource operation digests.
[out] | xml | Where to store XML with result |
[in] | rsc | Resource to calculate digests for |
[in] | node | Node whose operation history should be used |
[in] | overrides | Hash table of configuration parameters to override |
[in] | data_set | Cluster working set (with status) |
Definition at line 125 of file pcmk_resource.c.