pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
|
#include <stdint.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/ipc.h>
#include <crm/common/mainloop.h>
#include <crm/common/output_internal.h>
#include <crm/common/remote_internal.h>
#include <crm/lrmd.h>
Go to the source code of this file.
Data Structures | |
struct | remote_proxy_s |
Typedefs | |
typedef struct remote_proxy_s | remote_proxy_t |
Functions | |
int | lrmd__new (lrmd_t **api, const char *nodename, const char *server, int port) |
int | lrmd_send_attribute_alert (lrmd_t *lrmd, const GList *alert_list, const char *node, uint32_t nodeid, const char *attr_name, const char *attr_value) |
int | lrmd_send_node_alert (lrmd_t *lrmd, const GList *alert_list, const char *node, uint32_t nodeid, const char *state) |
int | lrmd_send_fencing_alert (lrmd_t *lrmd, const GList *alert_list, const char *target, const char *task, const char *desc, int op_rc) |
int | lrmd_send_resource_alert (lrmd_t *lrmd, const GList *alert_list, const char *node, const lrmd_event_data_t *op) |
int | lrmd__remote_send_xml (pcmk__remote_t *session, xmlNode *msg, uint32_t id, const char *msg_type) |
int | lrmd__metadata_async (const lrmd_rsc_info_t *rsc, void(*callback)(int pid, const pcmk__action_result_t *result, void *user_data), void *user_data) |
void | lrmd__set_result (lrmd_event_data_t *event, enum ocf_exitcode rc, int op_status, const char *exit_reason) |
void | lrmd__reset_result (lrmd_event_data_t *event) |
time_t | lrmd__uptime (lrmd_t *lrmd) |
const char * | lrmd__node_start_state (lrmd_t *lrmd) |
remote_proxy_t * | remote_proxy_new (lrmd_t *lrmd, struct ipc_client_callbacks *proxy_callbacks, const char *node_name, const char *session_id, const char *channel) |
int | lrmd__validate_remote_settings (lrmd_t *lrmd, GHashTable *hash) |
void | remote_proxy_cb (lrmd_t *lrmd, const char *node_name, xmlNode *msg) |
void | remote_proxy_ack_shutdown (lrmd_t *lrmd) |
void | remote_proxy_nack_shutdown (lrmd_t *lrmd) |
int | remote_proxy_dispatch (const char *buffer, ssize_t length, gpointer userdata) |
void | remote_proxy_disconnected (gpointer data) |
void | remote_proxy_free (gpointer data) |
void | remote_proxy_relay_event (remote_proxy_t *proxy, xmlNode *msg) |
void | remote_proxy_relay_response (remote_proxy_t *proxy, xmlNode *msg, int msg_id) |
void | lrmd__register_messages (pcmk__output_t *out) |
typedef struct remote_proxy_s remote_proxy_t |
int lrmd__metadata_async | ( | const lrmd_rsc_info_t * | rsc, |
void(*)(int pid, const pcmk__action_result_t *result, void *user_data) | callback, | ||
void * | user_data | ||
) |
Definition at line 2425 of file lrmd_client.c.
int lrmd__new | ( | lrmd_t ** | api, |
const char * | nodename, | ||
const char * | server, | ||
int | port | ||
) |
Definition at line 2247 of file lrmd_client.c.
const char* lrmd__node_start_state | ( | lrmd_t * | lrmd | ) |
Definition at line 2561 of file lrmd_client.c.
void lrmd__register_messages | ( | pcmk__output_t * | out | ) |
Definition at line 144 of file lrmd_output.c.
int lrmd__remote_send_xml | ( | pcmk__remote_t * | session, |
xmlNode * | msg, | ||
uint32_t | id, | ||
const char * | msg_type | ||
) |
void lrmd__reset_result | ( | lrmd_event_data_t * | event | ) |
Definition at line 2525 of file lrmd_client.c.
void lrmd__set_result | ( | lrmd_event_data_t * | event, |
enum ocf_exitcode | rc, | ||
int | op_status, | ||
const char * | exit_reason | ||
) |
Definition at line 2506 of file lrmd_client.c.
time_t lrmd__uptime | ( | lrmd_t * | lrmd | ) |
Definition at line 2549 of file lrmd_client.c.
int lrmd__validate_remote_settings | ( | lrmd_t * | lrmd, |
GHashTable * | hash | ||
) |
Definition at line 947 of file lrmd_client.c.
int lrmd_send_attribute_alert | ( | lrmd_t * | lrmd, |
const GList * | alert_list, | ||
const char * | node, | ||
uint32_t | nodeid, | ||
const char * | attr_name, | ||
const char * | attr_value | ||
) |
Definition at line 237 of file lrmd_alerts.c.
int lrmd_send_fencing_alert | ( | lrmd_t * | lrmd, |
const GList * | alert_list, | ||
const char * | target, | ||
const char * | task, | ||
const char * | desc, | ||
int | op_rc | ||
) |
Definition at line 310 of file lrmd_alerts.c.
int lrmd_send_node_alert | ( | lrmd_t * | lrmd, |
const GList * | alert_list, | ||
const char * | node, | ||
uint32_t | nodeid, | ||
const char * | state | ||
) |
Definition at line 275 of file lrmd_alerts.c.
int lrmd_send_resource_alert | ( | lrmd_t * | lrmd, |
const GList * | alert_list, | ||
const char * | node, | ||
const lrmd_event_data_t * | op | ||
) |
Definition at line 345 of file lrmd_alerts.c.
void remote_proxy_ack_shutdown | ( | lrmd_t * | lrmd | ) |
Definition at line 46 of file proxy_common.c.
void remote_proxy_cb | ( | lrmd_t * | lrmd, |
const char * | node_name, | ||
xmlNode * | msg | ||
) |
Definition at line 207 of file proxy_common.c.
void remote_proxy_disconnected | ( | gpointer | data | ) |
Definition at line 149 of file proxy_common.c.
int remote_proxy_dispatch | ( | const char * | buffer, |
ssize_t | length, | ||
gpointer | userdata | ||
) |
Definition at line 120 of file proxy_common.c.
void remote_proxy_free | ( | gpointer | data | ) |
Definition at line 109 of file proxy_common.c.
void remote_proxy_nack_shutdown | ( | lrmd_t * | lrmd | ) |
Definition at line 61 of file proxy_common.c.
remote_proxy_t* remote_proxy_new | ( | lrmd_t * | lrmd, |
struct ipc_client_callbacks * | proxy_callbacks, | ||
const char * | node_name, | ||
const char * | session_id, | ||
const char * | channel | ||
) |
Definition at line 167 of file proxy_common.c.
void remote_proxy_relay_event | ( | remote_proxy_t * | proxy, |
xmlNode * | msg | ||
) |
Definition at line 70 of file proxy_common.c.
void remote_proxy_relay_response | ( | remote_proxy_t * | proxy, |
xmlNode * | msg, | ||
int | msg_id | ||
) |
Definition at line 83 of file proxy_common.c.