10 #ifndef PCMK__PACEMAKER__H 11 # define PCMK__PACEMAKER__H 14 # include <libxml/tree.h> 96 unsigned int message_timeout_ms);
111 unsigned int message_timeout_ms);
152 char **uuid,
char **state,
bool *have_quorum,
153 bool *is_remote,
bool show_output,
154 unsigned int message_timeout_ms);
175 pcmk_query_node_name(xmlNodePtr *xml, uint32_t node_id,
char **node_name,
176 unsigned int message_timeout_ms)
179 NULL,
false, message_timeout_ms);
196 unsigned int message_timeout_ms);
210 const pe_node_t *node, GHashTable *overrides,
243 unsigned int section_opts,
const char *use_date,
244 const char *input_file,
const char *graph_file,
245 const char *dot_file);
279 const char **rule_ids);
293 pcmk_check_rule(xmlNodePtr *xml, xmlNodePtr
input,
const crm_time_t *date,
296 const char *rule_ids[] = {rule_id, NULL};
340 #ifdef BUILD_PUBLIC_LIBPACEMAKER 385 unsigned int timeout,
bool quiet,
int verbose,
386 bool broadcast,
bool cleanup);
410 int pcmk_fence_last(xmlNodePtr *xml,
const char *
target,
bool as_nodeid);
423 int pcmk_fence_list_targets(xmlNodePtr *xml,
stonith_t *
st,
424 const char *device_id,
unsigned int timeout);
440 int pcmk_fence_metadata(xmlNodePtr *xml,
stonith_t *
st,
const char *agent,
500 int pcmk_fence_validate(xmlNodePtr *xml,
stonith_t *
st,
const char *agent,
int pcmk_list_result_codes(xmlNodePtr *xml, enum pcmk_result_type type, uint32_t flags)
List all valid result codes in a particular family.
struct crm_time_s crm_time_t
Data types for Cluster Information Base access.
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.
int pcmk_designated_controller(xmlNodePtr *xml, unsigned int message_timeout_ms)
Get and output designated controller node name.
int pcmk_status(xmlNodePtr *xml)
Output cluster status formatted like crm_mon --output-as=xml
int pcmk_list_nodes(xmlNodePtr *xml, const char *node_types)
Get nodes list.
enum crm_ais_msg_types type
pcmk_rc_disp_flags
Bit flags to control which fields of result code info are displayed.
int pcmk_simulate(xmlNodePtr *xml, pe_working_set_t *data_set, const pcmk_injections_t *injections, unsigned int flags, unsigned int section_opts, const char *use_date, const char *input_file, const char *graph_file, const char *dot_file)
Simulate a cluster's response to events.
Display result code description.
pe_working_set_t * data_set
int pcmk_pacemakerd_status(xmlNodePtr *xml, const char *ipc_name, unsigned int message_timeout_ms)
Get and output pacemakerd status.
void pcmk_free_injections(pcmk_injections_t *injections)
Free a :pcmk_injections_t structure.
Display result code name.
int pcmk_controller_status(xmlNodePtr *xml, const char *node_name, unsigned int message_timeout_ms)
Get and output controller status.
Synthetic cluster events that can be injected into the cluster for running simulations.
int pcmk_check_rules(xmlNodePtr *xml, xmlNodePtr input, const crm_time_t *date, const char **rule_ids)
Check whether each rule in a list is in effect.
Display result code number.
int pcmk_show_result_code(xmlNodePtr *xml, int code, enum pcmk_result_type type, uint32_t flags)
Display the name and/or description of a result code.
int pcmk_resource_digests(xmlNodePtr *xml, pe_resource_t *rsc, const pe_node_t *node, GHashTable *overrides, pe_working_set_t *data_set)
Calculate and output resource operation digests.
Data types for cluster status.
pcmk_sim_flags
Modify operation of running a cluster simulation.
pcmk_result_type
Types of Pacemaker result codes.