pacemaker
2.1.0-7c3f660
Scalable High-Availability cluster resource manager
|
IPC commands for Pacemaker controller. More...
Go to the source code of this file.
Data Structures | |
struct | pcmk_controld_api_node_t |
struct | pcmk_controld_api_reply_t |
Enumerations | |
enum | pcmk_controld_api_reply { pcmk_controld_reply_unknown, pcmk_controld_reply_reprobe, pcmk_controld_reply_info, pcmk_controld_reply_resource, pcmk_controld_reply_ping, pcmk_controld_reply_nodes } |
Possible types of controller replies. More... | |
Functions | |
int | pcmk_controld_api_reprobe (pcmk_ipc_api_t *api, const char *target_node, const char *router_node) |
Send a reprobe controller operation. More... | |
int | pcmk_controld_api_node_info (pcmk_ipc_api_t *api, uint32_t nodeid) |
Send a "node info" controller operation. More... | |
int | pcmk_controld_api_fail (pcmk_ipc_api_t *api, const char *target_node, const char *router_node, const char *rsc_id, const char *rsc_long_id, const char *standard, const char *provider, const char *type) |
Ask the controller to fail a resource. More... | |
int | pcmk_controld_api_refresh (pcmk_ipc_api_t *api, const char *target_node, const char *router_node, const char *rsc_id, const char *rsc_long_id, const char *standard, const char *provider, const char *type, bool cib_only) |
Ask the controller to refresh a resource. More... | |
int | pcmk_controld_api_ping (pcmk_ipc_api_t *api, const char *node_name) |
Ask the controller for status. More... | |
int | pcmk_controld_api_list_nodes (pcmk_ipc_api_t *api) |
Ask the controller for cluster information. More... | |
int | pcmk_controld_api_shutdown (pcmk_ipc_api_t *api, const char *node_name) |
int | pcmk_controld_api_start_election (pcmk_ipc_api_t *api) |
unsigned int | pcmk_controld_api_replies_expected (pcmk_ipc_api_t *api) |
Get the number of IPC replies currently expected from the controller. More... | |
IPC commands for Pacemaker controller.
Definition in file ipc_controld.h.
Possible types of controller replies.
Enumerator | |
---|---|
pcmk_controld_reply_unknown | |
pcmk_controld_reply_reprobe | |
pcmk_controld_reply_info | |
pcmk_controld_reply_resource | |
pcmk_controld_reply_ping | |
pcmk_controld_reply_nodes |
Definition at line 30 of file ipc_controld.h.
int pcmk_controld_api_fail | ( | pcmk_ipc_api_t * | api, |
const char * | target_node, | ||
const char * | router_node, | ||
const char * | rsc_id, | ||
const char * | rsc_long_id, | ||
const char * | standard, | ||
const char * | provider, | ||
const char * | type | ||
) |
Ask the controller to fail a resource.
[in] | api | Controller connection |
[in] | target_node | Name of node resource is on |
[in] | router_node | Router node for target |
[in] | rsc_id | ID of resource to fail |
[in] | rsc_long_id | Long ID of resource (if any) |
[in] | standard | Standard of resource |
[in] | provider | Provider of resource (if any) |
[in] | type | Type of resource to fail |
Definition at line 566 of file ipc_controld.c.
int pcmk_controld_api_list_nodes | ( | pcmk_ipc_api_t * | api | ) |
Ask the controller for cluster information.
[in] | api | Controller connection |
Definition at line 419 of file ipc_controld.c.
int pcmk_controld_api_node_info | ( | pcmk_ipc_api_t * | api, |
uint32_t | nodeid | ||
) |
Send a "node info" controller operation.
[in] | api | Controller connection |
[in] | nodeid | ID of node to get info for (or 0 for local node) |
Definition at line 368 of file ipc_controld.c.
int pcmk_controld_api_ping | ( | pcmk_ipc_api_t * | api, |
const char * | node_name | ||
) |
Ask the controller for status.
[in] | api | Controller connection |
[in] | node_name | Name of node whose status is desired (or NULL for DC) |
Definition at line 396 of file ipc_controld.c.
int pcmk_controld_api_refresh | ( | pcmk_ipc_api_t * | api, |
const char * | target_node, | ||
const char * | router_node, | ||
const char * | rsc_id, | ||
const char * | rsc_long_id, | ||
const char * | standard, | ||
const char * | provider, | ||
const char * | type, | ||
bool | cib_only | ||
) |
Ask the controller to refresh a resource.
[in] | api | Controller connection |
[in] | target_node | Name of node resource is on |
[in] | router_node | Router node for target |
[in] | rsc_id | ID of resource to refresh |
[in] | rsc_long_id | Long ID of resource (if any) |
[in] | standard | Standard of resource |
[in] | provider | Provider of resource (if any) |
[in] | type | Type of resource |
[in] | cib_only | If true, clean resource from CIB only |
Definition at line 597 of file ipc_controld.c.
unsigned int pcmk_controld_api_replies_expected | ( | pcmk_ipc_api_t * | api | ) |
Get the number of IPC replies currently expected from the controller.
[in] | api | Controller IPC API connection |
Definition at line 619 of file ipc_controld.c.
int pcmk_controld_api_reprobe | ( | pcmk_ipc_api_t * | api, |
const char * | target_node, | ||
const char * | router_node | ||
) |
Send a reprobe controller operation.
[in] | api | Controller connection |
[in] | target_node | Name of node to reprobe |
[in] | router_node | Router node for host |
Definition at line 333 of file ipc_controld.c.
int pcmk_controld_api_shutdown | ( | pcmk_ipc_api_t * | api, |
const char * | node_name | ||
) |
Definition at line 447 of file ipc_controld.c.
int pcmk_controld_api_start_election | ( | pcmk_ipc_api_t * | api | ) |
Definition at line 474 of file ipc_controld.c.