pacemaker
2.1.7-0f7f88312f
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 active. 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 recurring operations registered for a resource. 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) |
Request execution of a resource action. More... | |
int(* | cancel )(lrmd_t *lrmd, const char *rsc_id, const char *action, guint interval_ms) |
Cancel a recurring resource action. More... | |
int(* | get_metadata )(lrmd_t *lrmd, const char *standard, const char *provider, const char *agent, char **output, enum lrmd_call_options options) |
Retrieve resource agent metadata synchronously. 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 supported standards. 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) |
Retrieve resource agent metadata synchronously with parameters. More... | |
int(* lrmd_api_operations_s::cancel) (lrmd_t *lrmd, const char *rsc_id, const char *action, guint interval_ms) |
Cancel a recurring resource action.
[in,out] | lrmd | Executor connection object |
[in] | rsc_id | ID of resource |
[in] | action | Name of resource action to cancel |
[in] | interval_ms | Action's interval (in milliseconds) |
int(* lrmd_api_operations_s::connect) (lrmd_t *lrmd, const char *client_name, int *fd) |
Initiate an executor connection without blocking.
[in,out] | lrmd | Executor connection object |
[in] | client_name | Arbitrary identifier to pass to server |
[in] | timeout | Error if not connected within this time (milliseconds) |
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) |
Request execution of a resource action.
[in,out] | lrmd | Executor connection object |
[in] | rsc_id | ID of resource |
[in] | action | Name of resource action to execute |
[in] | userdata | Arbitrary string to pass to event callback |
[in] | interval_ms | If 0, execute action once, otherwise recurring at this interval (in milliseconds) |
[in] | timeout | Error if not complete within this time (in milliseconds) |
[in] | start_delay | Wait this long before execution (in milliseconds) |
[in] | options | Group of enum lrmd_call_options flags |
[in,out] | params | Parameters to pass to agent (will be freed) |
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.
[in,out] | lrmd | Executor connection |
[in] | alert_id | Name of alert to execute |
[in] | alert_path | Full path to alert executable |
[in] | timeout | Error if not complete within this many milliseconds |
[in,out] | params | Parameters to pass to agent (will be freed) |
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) |
Retrieve resource agent metadata synchronously.
[in] | lrmd | Executor connection (unused) |
[in] | standard | Resource agent class |
[in] | provider | Resource agent provider |
[in] | agent | Resource agent type |
[out] | output | Where to store metadata (must not be NULL) |
[in] | options | Group of enum lrmd_call_options flags (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) |
Retrieve resource agent metadata synchronously with parameters.
[in] | lrmd | Executor connection (unused) |
[in] | standard | Resource agent class |
[in] | provider | Resource agent provider |
[in] | agent | Resource agent type |
[out] | output | Where to store metadata (must not be NULL) |
[in] | options | Group of enum lrmd_call_options flags (unused) |
[in,out] | params | Parameters to pass to agent (will be freed) |
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) |
Retrieve recurring operations registered for a resource.
[in,out] | lrmd | Executor connection object |
[in] | rsc_id | ID of resource to check |
[in] | timeout_ms | Error if not completed within this time |
[in] | options | Group of enum lrmd_call_options flags |
[out] | output | Where to store list of lrmd_op_info_t |
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.
[in] | lrmd | Executor connection (unused) |
[out] | agents | Where to store agent list (must not be NULL) |
[in] | standard | Resource agent standard to list |
[in] | provider | Resource agent provider to list (or NULL) |
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.
[in] | lrmd | Executor connection (unused) |
[in] | agent | If not NULL, list providers for this agent only |
[out] | providers | Where to store provider list |
int(* lrmd_api_operations_s::list_standards) (lrmd_t *lrmd, lrmd_list_t **standards) |
Retrieve a list of supported standards.
[in] | lrmd | Executor connection (unused) |
[out] | standards | Where to store standards list |
int(* lrmd_api_operations_s::poke_connection) (lrmd_t *lrmd) |
Poke executor connection to verify it is still active.
[in,out] | lrmd | Executor connection object to check |
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) |
Register a resource with the executor.
[in,out] | lrmd | Executor connection object |
[in] | rsc_id | ID of resource to register |
[in] | standard | Resource's resource agent standard |
[in] | provider | Resource's resource agent provider (or NULL) |
[in] | agent | Resource's resource agent name |
[in] | options | Group of enum lrmd_call_options flags |
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.
[in,out] | lrmd | Executor connection object |
[in] | rsc_id | ID of resource to unregister |
[in] | options | Group of enum lrmd_call_options flags |