pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <libxml/tree.h>
#include <pacemaker.h>
#include <pacemaker-internal.h>
#include <crm/crm.h>
#include <crm/cib.h>
#include <crm/cib/internal.h>
#include <crm/common/output_internal.h>
#include <crm/common/xml.h>
#include <crm/common/xml_internal.h>
#include <crm/common/iso8601.h>
#include <crm/common/ipc_controld.h>
#include <crm/common/ipc_pacemakerd.h>
Go to the source code of this file.
Functions | |
int | pcmk__controller_status (pcmk__output_t *out, const char *node_name, unsigned int message_timeout_ms) |
int | pcmk_controller_status (xmlNodePtr *xml, const char *node_name, unsigned int message_timeout_ms) |
Get and output controller status. More... | |
int | pcmk__designated_controller (pcmk__output_t *out, unsigned int message_timeout_ms) |
int | pcmk_designated_controller (xmlNodePtr *xml, unsigned int message_timeout_ms) |
Get and output designated controller node name. More... | |
int | pcmk__query_node_info (pcmk__output_t *out, uint32_t *node_id, char **node_name, char **uuid, char **state, bool *have_quorum, bool *is_remote, bool show_output, unsigned int message_timeout_ms) |
int | pcmk_query_node_info (xmlNodePtr *xml, uint32_t *node_id, char **node_name, char **uuid, char **state, bool *have_quorum, bool *is_remote, bool show_output, unsigned int message_timeout_ms) |
Get and optionally output node info corresponding to a node ID from the controller. More... | |
int | pcmk__pacemakerd_status (pcmk__output_t *out, const char *ipc_name, unsigned int message_timeout_ms, bool show_output, enum pcmk_pacemakerd_state *state) |
int | pcmk_pacemakerd_status (xmlNodePtr *xml, const char *ipc_name, unsigned int message_timeout_ms) |
Get and output pacemakerd status. More... | |
int | pcmk__list_nodes (pcmk__output_t *out, const char *node_types, bool bash_export) |
int | pcmk_list_nodes (xmlNodePtr *xml, const char *node_types) |
Get nodes list. More... | |
int pcmk__controller_status | ( | pcmk__output_t * | out, |
const char * | node_name, | ||
unsigned int | message_timeout_ms | ||
) |
Definition at line 459 of file pcmk_cluster_queries.c.
int pcmk__designated_controller | ( | pcmk__output_t * | out, |
unsigned int | message_timeout_ms | ||
) |
Definition at line 529 of file pcmk_cluster_queries.c.
int pcmk__list_nodes | ( | pcmk__output_t * | out, |
const char * | node_types, | ||
bool | bash_export | ||
) |
Definition at line 828 of file pcmk_cluster_queries.c.
int pcmk__pacemakerd_status | ( | pcmk__output_t * | out, |
const char * | ipc_name, | ||
unsigned int | message_timeout_ms, | ||
bool | show_output, | ||
enum pcmk_pacemakerd_state * | state | ||
) |
Definition at line 737 of file pcmk_cluster_queries.c.
int pcmk__query_node_info | ( | pcmk__output_t * | out, |
uint32_t * | node_id, | ||
char ** | node_name, | ||
char ** | uuid, | ||
char ** | state, | ||
bool * | have_quorum, | ||
bool * | is_remote, | ||
bool | show_output, | ||
unsigned int | message_timeout_ms | ||
) |
Definition at line 616 of file pcmk_cluster_queries.c.
int pcmk_controller_status | ( | xmlNodePtr * | xml, |
const char * | node_name, | ||
unsigned int | message_timeout_ms | ||
) |
Get and output controller status.
[in,out] | xml | Destination for the result, as an XML tree |
[in] | node_name | Name of node whose status is desired (NULL for DC) |
[in] | message_timeout_ms | How long to wait for a reply from the pacemaker-controld API. If 0, pcmk_ipc_dispatch_sync will be used. Otherwise, pcmk_ipc_dispatch_poll will be used. |
Definition at line 497 of file pcmk_cluster_queries.c.
int pcmk_designated_controller | ( | xmlNodePtr * | xml, |
unsigned int | message_timeout_ms | ||
) |
Get and output designated controller node name.
[in,out] | xml | Destination for the result, as an XML tree |
[in] | message_timeout_ms | How long to wait for a reply from the pacemaker-controld API. If 0, pcmk_ipc_dispatch_sync will be used. Otherwise, pcmk_ipc_dispatch_poll will be used. |
Definition at line 566 of file pcmk_cluster_queries.c.
int pcmk_list_nodes | ( | xmlNodePtr * | xml, |
const 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 887 of file pcmk_cluster_queries.c.
int pcmk_pacemakerd_status | ( | xmlNodePtr * | xml, |
const char * | ipc_name, | ||
unsigned int | message_timeout_ms | ||
) |
Get and output pacemakerd
status.
[in,out] | xml | Destination for the result, as an XML tree |
[in] | ipc_name | IPC name for request |
[in] | message_timeout_ms | How long to wait for a reply from the pacemakerd API. If 0, pcmk_ipc_dispatch_sync will be used. Otherwise, pcmk_ipc_dispatch_poll will be used. |
Definition at line 785 of file pcmk_cluster_queries.c.
int pcmk_query_node_info | ( | xmlNodePtr * | xml, |
uint32_t * | node_id, | ||
char ** | node_name, | ||
char ** | uuid, | ||
char ** | state, | ||
bool * | have_quorum, | ||
bool * | is_remote, | ||
bool | show_output, | ||
unsigned int | message_timeout_ms | ||
) |
Get and optionally output node info corresponding to a node ID from the controller.
[in,out] | xml | Destination for the result, as an XML tree |
[in,out] | node_id | ID of node whose name to get. If NULL or 0, get the local node name. If not NULL , store the true node ID here on success. |
[out] | node_name | If not NULL , where to store the node name |
[out] | uuid | If not NULL , where to store the node UUID |
[out] | state | If not NULL , where to store the membership state |
[out] | is_remote | If not NULL , where to store whether the node is a Pacemaker Remote node |
[out] | have_quorum | If not NULL , where to store whether the node has quorum |
[in] | show_output | Whether to output the node info |
[in] | message_timeout_ms | How long to wait for a reply from the pacemaker-controld API. If 0, pcmk_ipc_dispatch_sync will be used. Otherwise, pcmk_ipc_dispatch_poll will be used. |
*node_name
, *uuid
, and *state
using free()
. Definition at line 689 of file pcmk_cluster_queries.c.