pacemaker
1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
|
#include <lrmd.h>
Data Fields | |
int(* | connect )(lrmd_t *lrmd, const char *client_name, int *fd) |
Connect from the lrmd. More... | |
int(* | connect_async )(lrmd_t *lrmd, const char *client_name, int timeout) |
Establish an connection to lrmd, don't block while connecting. More... | |
int(* | is_connected )(lrmd_t *lrmd) |
Is connected to lrmd daemon? More... | |
int(* | poke_connection )(lrmd_t *lrmd) |
Poke lrmd connection to verify it is still capable of serving requests. More... | |
int(* | disconnect )(lrmd_t *lrmd) |
Disconnect from the lrmd. More... | |
int(* | register_rsc )(lrmd_t *lrmd, const char *rsc_id, const char *class, const char *provider, const char *agent, enum lrmd_call_options options) |
Register a resource with the lrmd. More... | |
lrmd_rsc_info_t *(* | get_rsc_info )(lrmd_t *lrmd, const char *rsc_id, enum lrmd_call_options options) |
Retrieve registration info for a rsc. More... | |
int(* | unregister_rsc )(lrmd_t *lrmd, const char *rsc_id, enum lrmd_call_options options) |
Unregister a resource from the lrmd. More... | |
void(* | set_callback )(lrmd_t *lrmd, lrmd_event_callback callback) |
Sets the callback to receive lrmd events on. More... | |
int(* | exec )(lrmd_t *lrmd, const char *rsc_id, const char *action, const char *userdata, int interval, int timeout, int start_delay, enum lrmd_call_options options, lrmd_key_value_t *params) |
Issue a command on a resource. More... | |
int(* | cancel )(lrmd_t *lrmd, const char *rsc_id, const char *action, int interval) |
Cancel a recurring command. More... | |
int(* | get_metadata )(lrmd_t *lrmd, const char *class, const char *provider, const char *agent, char **output, enum lrmd_call_options options) |
Get resource metadata for a specified resource agent. More... | |
int(* | list_agents )(lrmd_t *lrmd, lrmd_list_t **agents, const char *class, const char *provider) |
Retrieve a list of installed resource agents. More... | |
int(* | list_ocf_providers )(lrmd_t *lrmd, const char *agent, lrmd_list_t **providers) |
Retrieve a list of resource agent providers. More... | |
int(* | list_standards )(lrmd_t *lrmd, lrmd_list_t **standards) |
Retrieve a list of standards supported by this machine/installation. More... | |
int(* | exec_alert )(lrmd_t *lrmd, const char *alert_id, const char *alert_path, int timeout, lrmd_key_value_t *params) |
Execute an alert agent. More... | |
int(* lrmd_api_operations_s::cancel)(lrmd_t *lrmd, const char *rsc_id, const char *action, int interval) |
Cancel a recurring command.
It is not however safe to assume any operation on one resource will occur before an operation on another resource regardless of the order the client api is called in.
0,cancel | command sent. |
negative | error code on failure |
int(* lrmd_api_operations_s::connect)(lrmd_t *lrmd, const char *client_name, int *fd) |
int(* lrmd_api_operations_s::connect_async)(lrmd_t *lrmd, const char *client_name, int timeout) |
Establish an connection to lrmd, don't block while connecting.
0,connect | in progress, wait for event callback |
-1,failure. |
int(* lrmd_api_operations_s::disconnect)(lrmd_t *lrmd) |
int(* lrmd_api_operations_s::exec)(lrmd_t *lrmd, const char *rsc_id, const char *action, const char *userdata,int interval,int timeout,int start_delay,enum lrmd_call_options options, lrmd_key_value_t *params) |
Issue a command on a resource.
call_id | to track async event result on success |
negative | error code on failure |
int(* lrmd_api_operations_s::exec_alert)(lrmd_t *lrmd, const char *alert_id, const char *alert_path, int timeout,lrmd_key_value_t *params) |
Execute an alert agent.
call_id | to track async event result on success |
negative | error code on failure |
int(* lrmd_api_operations_s::get_metadata)(lrmd_t *lrmd, const char *class, const char *provider, const char *agent, char **output, enum lrmd_call_options options) |
Get resource metadata for a specified resource agent.
[in] | lrmd | LRMD connection (unused) |
[in] | class | Resource agent class |
[in] | provider | Resource agent provider |
[in] | agent | Resource agent type |
[out] | output | Metadata will be stored here (must not be NULL) |
[in] | options | Options to use with any LRMD API calls (unused) |
lrmd_ok | success |
negative | error code on failure |
lrmd_rsc_info_t*(* lrmd_api_operations_s::get_rsc_info)(lrmd_t *lrmd, const char *rsc_id, enum lrmd_call_options options) |
int(* lrmd_api_operations_s::is_connected)(lrmd_t *lrmd) |
int(* lrmd_api_operations_s::list_agents)(lrmd_t *lrmd, lrmd_list_t **agents, const char *class, const char *provider) |
Retrieve a list of installed resource agents.
num | items in list on success |
negative | error code on failure |
int(* lrmd_api_operations_s::list_ocf_providers)(lrmd_t *lrmd, const char *agent, lrmd_list_t **providers) |
Retrieve a list of resource agent providers.
num | items in list on success |
negative | error code on failure |
int(* lrmd_api_operations_s::list_standards)(lrmd_t *lrmd, lrmd_list_t **standards) |
Retrieve a list of standards supported by this machine/installation.
num | items in list on success |
negative | error code on failure |
int(* lrmd_api_operations_s::poke_connection)(lrmd_t *lrmd) |
int(* lrmd_api_operations_s::register_rsc)(lrmd_t *lrmd, const char *rsc_id, const char *class, const char *provider, const char *agent, enum lrmd_call_options options) |
void(* lrmd_api_operations_s::set_callback)(lrmd_t *lrmd, lrmd_event_callback callback) |
int(* lrmd_api_operations_s::unregister_rsc)(lrmd_t *lrmd, const char *rsc_id, enum lrmd_call_options options) |
Unregister a resource from the lrmd.
0,success | |
-1,success,but | operations are currently executing on the rsc which will return once they are completed. |
negative | error code on failure |