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);
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};
379 #ifdef BUILD_PUBLIC_LIBPACEMAKER 424 unsigned int timeout,
bool quiet,
int verbose,
425 bool broadcast,
bool cleanup);
449 int pcmk_fence_last(xmlNodePtr *xml,
const char *
target,
bool as_nodeid);
462 int pcmk_fence_list_targets(xmlNodePtr *xml,
stonith_t *
st,
463 const char *device_id,
unsigned int timeout);
479 int pcmk_fence_metadata(xmlNodePtr *xml,
stonith_t *
st,
const char *agent,
539 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.
Implementation of pcmk_scheduler_t.
Implementation of pcmk_resource_t.
Display result code description.
int pcmk_list_standards(xmlNodePtr *xml)
List all available resource agent standards.
int pcmk_simulate(xmlNodePtr *xml, pcmk_scheduler_t *scheduler, 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.
int pcmk_pacemakerd_status(xmlNodePtr *xml, const char *ipc_name, unsigned int message_timeout_ms)
Get and output pacemakerd status.
Implementation of pcmk_node_t.
void pcmk_free_injections(pcmk_injections_t *injections)
Free a :pcmk_injections_t structure.
int pcmk_list_providers(xmlNodePtr *xml, const char *agent_spec)
List all available OCF providers for the given agent.
Display result code name.
int pcmk_controller_status(xmlNodePtr *xml, const char *node_name, unsigned int message_timeout_ms)
Get and output controller status.
pcmk_scheduler_t * scheduler
int pcmk_list_alternatives(xmlNodePtr *xml, const char *agent_spec)
List available providers for the given OCF agent.
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.
int pcmk_resource_digests(xmlNodePtr *xml, pcmk_resource_t *rsc, const pcmk_node_t *node, GHashTable *overrides, pcmk_scheduler_t *scheduler)
Calculate and output resource operation digests.
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_list_agents(xmlNodePtr *xml, char *agent_spec)
List all agents available for the named standard and/or provider.
pcmk_sim_flags
Modify operation of running a cluster simulation.
pcmk_result_type
Types of Pacemaker result codes.