10 #ifndef PCMK__PACEMAKER__H 11 # define PCMK__PACEMAKER__H 14 # include <libxml/tree.h> 125 unsigned int message_timeout_ms);
173 unsigned int section_opts,
char *use_date,
char *input_file,
174 char *graph_file,
char *dot_file);
209 const char **rule_ids);
223 pcmk_check_rule(xmlNodePtr *xml, xmlNodePtr
input,
const crm_time_t *date,
226 const char *rule_ids[] = {rule_id, NULL};
270 #ifdef BUILD_PUBLIC_LIBPACEMAKER 315 unsigned int timeout,
bool quiet,
int verbose,
316 bool broadcast,
bool cleanup);
344 int pcmk_fence_last(xmlNodePtr *xml,
const char *
target,
bool as_nodeid);
359 int pcmk_fence_list_targets(xmlNodePtr *xml,
stonith_t *
st,
360 const char *device_id,
unsigned int timeout);
375 int pcmk_fence_metadata(xmlNodePtr *xml,
stonith_t *
st,
char *agent,
444 int pcmk_fence_validate(xmlNodePtr *xml,
stonith_t *
st,
const char *agent,
int pcmk_simulate(xmlNodePtr *xml, pe_working_set_t *data_set, pcmk_injections_t *injections, unsigned int flags, unsigned int section_opts, char *use_date, char *input_file, char *graph_file, char *dot_file)
Simulate a cluster's response to events.
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_designated_controller(xmlNodePtr *xml, unsigned int message_timeout_ms)
Get designated controller.
int pcmk_status(xmlNodePtr *xml)
Output the current status of the cluster, formatted in the same way that crm_mon --output-as=xml woul...
enum crm_ais_msg_types type
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.
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.
int pcmk_list_nodes(xmlNodePtr *xml, char *node_types)
Get nodes list.
void pcmk_free_injections(pcmk_injections_t *injections)
Free a :pcmk_injections_t structure.
int pcmk_controller_status(xmlNodePtr *xml, char *dest_node, unsigned int message_timeout_ms)
Get controller status.
Display result code name.
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)
Data types for cluster status.
pcmk_sim_flags
Modify operation of running a cluster simulation.
pcmk_result_type
Types of Pacemaker result codes.