![]()  | 
  
    pacemaker
    2.1.9-49aab99839
    
   Scalable High-Availability cluster resource manager 
   | 
 
#include <crm_internal.h>#include <glib.h>#include <stdbool.h>#include <crm/crm.h>#include <crm/common/xml.h>#include <crm/common/scheduler_internal.h>#include <crm/pengine/internal.h>#include <crm/common/xml_internal.h>#include "pe_status_private.h"
Go to the source code of this file.
Macros | |
| #define | sort_return(an_int, why) | 
Functions | |
| xmlNode * | pcmk__find_action_config (const pcmk_resource_t *rsc, const char *action_name, guint interval_ms, bool include_disabled) | 
| GHashTable * | pcmk__unpack_action_rsc_params (const xmlNode *action_xml, GHashTable *node_attrs, pcmk_scheduler_t *scheduler) | 
| GHashTable * | pcmk__unpack_action_meta (pcmk_resource_t *rsc, const pcmk_node_t *node, const char *action_name, guint interval_ms, const xmlNode *action_config) | 
| enum rsc_start_requirement | pcmk__action_requires (const pcmk_resource_t *rsc, const char *action_name) | 
| enum action_fail_response | pcmk__parse_on_fail (const pcmk_resource_t *rsc, const char *action_name, guint interval_ms, const char *value) | 
| enum rsc_role_e | pcmk__role_after_failure (const pcmk_resource_t *rsc, const char *action_name, enum action_fail_response on_fail, GHashTable *meta) | 
| pcmk_action_t * | custom_action (pcmk_resource_t *rsc, char *key, const char *task, const pcmk_node_t *on_node, gboolean optional, pcmk_scheduler_t *scheduler) | 
| Create or update an action object.  More... | |
| pcmk_action_t * | get_pseudo_op (const char *name, pcmk_scheduler_t *scheduler) | 
| pcmk_action_t * | pe_fence_op (pcmk_node_t *node, const char *op, bool optional, const char *reason, bool priority_delay, pcmk_scheduler_t *scheduler) | 
| void | pe_free_action (pcmk_action_t *action) | 
| enum action_tasks | get_complex_task (const pcmk_resource_t *rsc, const char *name) | 
| pcmk_action_t * | find_first_action (const GList *input, const char *uuid, const char *task, const pcmk_node_t *on_node) | 
| GList * | find_actions (GList *input, const char *key, const pcmk_node_t *on_node) | 
| GList * | find_actions_exact (GList *input, const char *key, const pcmk_node_t *on_node) | 
| GList * | pe__resource_actions (const pcmk_resource_t *rsc, const pcmk_node_t *node, const char *task, bool require_node) | 
| Find all actions of given type for a resource.  More... | |
| char * | pe__action2reason (const pcmk_action_t *action, enum pe_action_flags flag) | 
| void | pe_action_set_reason (pcmk_action_t *action, const char *reason, bool overwrite) | 
| void | pe__clear_resource_history (pcmk_resource_t *rsc, const pcmk_node_t *node) | 
| int | pe__is_newer_op (const xmlNode *xml_a, const xmlNode *xml_b, bool same_node_default) | 
| gint | sort_op_by_callid (gconstpointer a, gconstpointer b) | 
| pcmk_action_t * | pe__new_rsc_pseudo_action (pcmk_resource_t *rsc, const char *task, bool optional, bool runnable) | 
| void | pe__add_action_expected_result (pcmk_action_t *action, int expected_result) | 
| #define sort_return | ( | an_int, | |
| why | |||
| ) | 
Definition at line 1638 of file pe_actions.c.
| pcmk_action_t* custom_action | ( | pcmk_resource_t * | rsc, | 
| char * | key, | ||
| const char * | task, | ||
| const pcmk_node_t * | on_node, | ||
| gboolean | optional, | ||
| pcmk_scheduler_t * | scheduler | ||
| ) | 
Create or update an action object.
| [in,out] | rsc | Resource that action is for (if any) | 
| [in,out] | key | Action key (must be non-NULL) | 
| [in] | task | Action name (must be non-NULL) | 
| [in] | on_node | Node that action is on (if any) | 
| [in] | optional | Whether action should be considered optional | 
| [in,out] | scheduler | Scheduler data | 
NULL) key, and scheduler takes ownership of the returned action (the caller should not free it). Definition at line 1129 of file pe_actions.c.
| GList* find_actions | ( | GList * | input, | 
| const char * | key, | ||
| const pcmk_node_t * | on_node | ||
| ) | 
Definition at line 1480 of file pe_actions.c.
| GList* find_actions_exact | ( | GList * | input, | 
| const char * | key, | ||
| const pcmk_node_t * | on_node | ||
| ) | 
Definition at line 1514 of file pe_actions.c.
| pcmk_action_t* find_first_action | ( | const GList * | input, | 
| const char * | uuid, | ||
| const char * | task, | ||
| const pcmk_node_t * | on_node | ||
| ) | 
Definition at line 1451 of file pe_actions.c.
| enum action_tasks get_complex_task | ( | const pcmk_resource_t * | rsc, | 
| const char * | name | ||
| ) | 
Definition at line 1418 of file pe_actions.c.
| pcmk_action_t* get_pseudo_op | ( | const char * | name, | 
| pcmk_scheduler_t * | scheduler | ||
| ) | 
Definition at line 1177 of file pe_actions.c.
| enum rsc_start_requirement pcmk__action_requires | ( | const pcmk_resource_t * | rsc, | 
| const char * | action_name | ||
| ) | 
Definition at line 852 of file pe_actions.c.
| xmlNode* pcmk__find_action_config | ( | const pcmk_resource_t * | rsc, | 
| const char * | action_name, | ||
| guint | interval_ms, | ||
| bool | include_disabled | ||
| ) | 
Definition at line 132 of file pe_actions.c.
| enum action_fail_response pcmk__parse_on_fail | ( | const pcmk_resource_t * | rsc, | 
| const char * | action_name, | ||
| guint | interval_ms, | ||
| const char * | value | ||
| ) | 
Definition at line 890 of file pe_actions.c.
| enum rsc_role_e pcmk__role_after_failure | ( | const pcmk_resource_t * | rsc, | 
| const char * | action_name, | ||
| enum action_fail_response | on_fail, | ||
| GHashTable * | meta | ||
| ) | 
Definition at line 1031 of file pe_actions.c.
| GHashTable* pcmk__unpack_action_meta | ( | pcmk_resource_t * | rsc, | 
| const pcmk_node_t * | node, | ||
| const char * | action_name, | ||
| guint | interval_ms, | ||
| const xmlNode * | action_config | ||
| ) | 
Definition at line 702 of file pe_actions.c.
| GHashTable* pcmk__unpack_action_rsc_params | ( | const xmlNode * | action_xml, | 
| GHashTable * | node_attrs, | ||
| pcmk_scheduler_t * | scheduler | ||
| ) | 
Definition at line 241 of file pe_actions.c.
| char* pe__action2reason | ( | const pcmk_action_t * | action, | 
| enum pe_action_flags | flag | ||
| ) | 
Definition at line 1579 of file pe_actions.c.
| void pe__add_action_expected_result | ( | pcmk_action_t * | action, | 
| int | expected_result | ||
| ) | 
Definition at line 1830 of file pe_actions.c.
| void pe__clear_resource_history | ( | pcmk_resource_t * | rsc, | 
| const pcmk_node_t * | node | ||
| ) | 
Definition at line 1630 of file pe_actions.c.
| int pe__is_newer_op | ( | const xmlNode * | xml_a, | 
| const xmlNode * | xml_b, | ||
| bool | same_node_default | ||
| ) | 
Definition at line 1648 of file pe_actions.c.
| pcmk_action_t* pe__new_rsc_pseudo_action | ( | pcmk_resource_t * | rsc, | 
| const char * | task, | ||
| bool | optional, | ||
| bool | runnable | ||
| ) | 
Definition at line 1804 of file pe_actions.c.
| GList* pe__resource_actions | ( | const pcmk_resource_t * | rsc, | 
| const pcmk_node_t * | node, | ||
| const char * | task, | ||
| bool | require_node | ||
| ) | 
Find all actions of given type for a resource.
| [in] | rsc | Resource to search | 
| [in] | node | Find only actions scheduled on this node | 
| [in] | task | Action name to search for | 
| [in] | require_node | If TRUE, NULL node or action node will not match | 
Definition at line 1553 of file pe_actions.c.
| void pe_action_set_reason | ( | pcmk_action_t * | action, | 
| const char * | reason, | ||
| bool | overwrite | ||
| ) | 
Definition at line 1604 of file pe_actions.c.
| pcmk_action_t* pe_fence_op | ( | pcmk_node_t * | node, | 
| const char * | op, | ||
| bool | optional, | ||
| const char * | reason, | ||
| bool | priority_delay, | ||
| pcmk_scheduler_t * | scheduler | ||
| ) | 
Definition at line 1281 of file pe_actions.c.
| void pe_free_action | ( | pcmk_action_t * | action | ) | 
Definition at line 1396 of file pe_actions.c.
| gint sort_op_by_callid | ( | gconstpointer | a, | 
| gconstpointer | b | ||
| ) | 
Definition at line 1784 of file pe_actions.c.
 1.8.14