pacemaker
2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
|
#include <include/crm/lrmd.h>
Data Fields | |
int(* | connect )(lrmd_t *lrmd, const char *client_name, int *fd) |
Connect to an executor. More... | |
int(* | connect_async )(lrmd_t *lrmd, const char *client_name, int timeout) |
Initiate an executor connection without blocking. More... | |
int(* | is_connected )(lrmd_t *lrmd) |
Check whether connection to executor daemon is (still) active. More... | |
int(* | poke_connection )(lrmd_t *lrmd) |
Poke executor connection to verify it is still capable of serving requests. More... | |
int(* | disconnect )(lrmd_t *lrmd) |
Disconnect from the executor. More... | |
int(* | register_rsc )(lrmd_t *lrmd, const char *rsc_id, const char *standard, const char *provider, const char *agent, enum lrmd_call_options options) |
Register a resource with the executor. More... | |
lrmd_rsc_info_t *(* | get_rsc_info )(lrmd_t *lrmd, const char *rsc_id, enum lrmd_call_options options) |
Retrieve a resource's registration information. More... | |
int(* | get_recurring_ops )(lrmd_t *lrmd, const char *rsc_id, int timeout_ms, enum lrmd_call_options options, GList **output) |
Retrieve registered recurring operations. More... | |
int(* | unregister_rsc )(lrmd_t *lrmd, const char *rsc_id, enum lrmd_call_options options) |
Unregister a resource from the executor. More... | |
void(* | set_callback )(lrmd_t *lrmd, lrmd_event_callback callback) |
Set a callback for executor events. More... | |
int(* | exec )(lrmd_t *lrmd, const char *rsc_id, const char *action, const char *userdata, guint interval_ms, 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, guint interval_ms) |
Cancel a recurring command. More... | |
int(* | get_metadata )(lrmd_t *lrmd, const char *standard, 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 *standard, 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(* | get_metadata_params )(lrmd_t *lrmd, const char *standard, const char *provider, const char *agent, char **output, enum lrmd_call_options options, lrmd_key_value_t *params) |
Get resource metadata for a resource agent, passing parameters. More... | |
int(* lrmd_api_operations_s::cancel) (lrmd_t *lrmd, const char *rsc_id, const char *action, guint interval_ms) |
Cancel a recurring command.
int(* lrmd_api_operations_s::connect) (lrmd_t *lrmd, const char *client_name, int *fd) |
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, guint interval_ms, int timeout, int start_delay, enum lrmd_call_options options, lrmd_key_value_t *params) |
Issue a command on a resource.
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.
int(* lrmd_api_operations_s::get_metadata) (lrmd_t *lrmd, const char *standard, const char *provider, const char *agent, char **output, enum lrmd_call_options options) |
Get resource metadata for a specified resource agent.
[in] | lrmd | Executor connection (unused) |
[in] | standard | 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 executor API calls (unused) |
int(* lrmd_api_operations_s::get_metadata_params) (lrmd_t *lrmd, const char *standard, const char *provider, const char *agent, char **output, enum lrmd_call_options options, lrmd_key_value_t *params) |
Get resource metadata for a resource agent, passing parameters.
[in] | lrmd | Executor connection (unused) |
[in] | standard | 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 executor API calls (unused) |
[in] | params | Parameters to pass to agent via environment |
int(* lrmd_api_operations_s::get_recurring_ops) (lrmd_t *lrmd, const char *rsc_id, int timeout_ms, enum lrmd_call_options options, GList **output) |
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 *standard, const char *provider) |
Retrieve a list of installed resource agents.
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.
int(* lrmd_api_operations_s::list_standards) (lrmd_t *lrmd, lrmd_list_t **standards) |
Retrieve a list of standards supported by this machine/installation.
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 *standard, 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 executor.