| 
    pacemaker
    2.1.5-b7adf64e51
    
   Scalable High-Availability cluster resource manager 
   | 
 
#include <crm_internal.h>#include <glib.h>#include <stdbool.h>#include <crm/crm.h>#include <crm/msg_xml.h>#include <crm/pengine/internal.h>#include "pe_status_private.h"
Go to the source code of this file.
Macros | |
| #define | sort_return(an_int, why) | 
Functions | |
| xmlNode * | find_rsc_op_entry (const pe_resource_t *rsc, const char *key) | 
| pe_action_t * | custom_action (pe_resource_t *rsc, char *key, const char *task, const pe_node_t *on_node, gboolean optional, gboolean save_action, pe_working_set_t *data_set) | 
| Create or update an action object.  More... | |
| pe_action_t * | get_pseudo_op (const char *name, pe_working_set_t *data_set) | 
| pe_action_t * | pe_fence_op (pe_node_t *node, const char *op, bool optional, const char *reason, bool priority_delay, pe_working_set_t *data_set) | 
| void | pe_free_action (pe_action_t *action) | 
| int | pe_get_configured_timeout (pe_resource_t *rsc, const char *action, pe_working_set_t *data_set) | 
| enum action_tasks | get_complex_task (pe_resource_t *rsc, const char *name, gboolean allow_non_atomic) | 
| pe_action_t * | find_first_action (const GList *input, const char *uuid, const char *task, const pe_node_t *on_node) | 
| GList * | find_actions (GList *input, const char *key, const pe_node_t *on_node) | 
| GList * | find_actions_exact (GList *input, const char *key, const pe_node_t *on_node) | 
| GList * | pe__resource_actions (const pe_resource_t *rsc, const pe_node_t *node, const char *task, bool require_node) | 
| Find all actions of given type for a resource.  More... | |
| char * | pe__action2reason (pe_action_t *action, enum pe_action_flags flag) | 
| void | pe_action_set_reason (pe_action_t *action, const char *reason, bool overwrite) | 
| pe_action_t * | pe__clear_resource_history (pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set) | 
| 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) | 
| pe_action_t * | pe__new_rsc_pseudo_action (pe_resource_t *rsc, const char *task, bool optional, bool runnable) | 
| void | pe__add_action_expected_result (pe_action_t *action, int expected_result) | 
| #define sort_return | ( | an_int, | |
| why | |||
| ) | 
Definition at line 1484 of file pe_actions.c.
| pe_action_t* custom_action | ( | pe_resource_t * | rsc, | 
| char * | key, | ||
| const char * | task, | ||
| const pe_node_t * | on_node, | ||
| gboolean | optional, | ||
| gboolean | save_action, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Create or update an action object.
| [in] | rsc | Resource that action is for (if any) | 
| [in] | 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] | save_action | Whether action should be recorded in transition graph | 
| [in] | data_set | Cluster working set | 
key. If save_action is true, data_set will own the returned action, otherwise it is the caller's responsibility to free the return value with pe_free_action(). Definition at line 940 of file pe_actions.c.
| GList* find_actions | ( | GList * | input, | 
| const char * | key, | ||
| const pe_node_t * | on_node | ||
| ) | 
Definition at line 1325 of file pe_actions.c.
| GList* find_actions_exact | ( | GList * | input, | 
| const char * | key, | ||
| const pe_node_t * | on_node | ||
| ) | 
Definition at line 1359 of file pe_actions.c.
| pe_action_t* find_first_action | ( | const GList * | input, | 
| const char * | uuid, | ||
| const char * | task, | ||
| const pe_node_t * | on_node | ||
| ) | 
Definition at line 1296 of file pe_actions.c.
| xmlNode* find_rsc_op_entry | ( | const pe_resource_t * | rsc, | 
| const char * | key | ||
| ) | 
Definition at line 145 of file pe_actions.c.
| enum action_tasks get_complex_task | ( | pe_resource_t * | rsc, | 
| const char * | name, | ||
| gboolean | allow_non_atomic | ||
| ) | 
Definition at line 1262 of file pe_actions.c.
| pe_action_t* get_pseudo_op | ( | const char * | name, | 
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 977 of file pe_actions.c.
| char* pe__action2reason | ( | pe_action_t * | action, | 
| enum pe_action_flags | flag | ||
| ) | 
Definition at line 1424 of file pe_actions.c.
| void pe__add_action_expected_result | ( | pe_action_t * | action, | 
| int | expected_result | ||
| ) | 
Definition at line 1673 of file pe_actions.c.
| pe_action_t* pe__clear_resource_history | ( | pe_resource_t * | rsc, | 
| pe_node_t * | node, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 1473 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 1494 of file pe_actions.c.
| pe_action_t* pe__new_rsc_pseudo_action | ( | pe_resource_t * | rsc, | 
| const char * | task, | ||
| bool | optional, | ||
| bool | runnable | ||
| ) | 
Definition at line 1647 of file pe_actions.c.
| GList* pe__resource_actions | ( | const pe_resource_t * | rsc, | 
| const pe_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 1398 of file pe_actions.c.
| void pe_action_set_reason | ( | pe_action_t * | action, | 
| const char * | reason, | ||
| bool | overwrite | ||
| ) | 
Definition at line 1447 of file pe_actions.c.
| pe_action_t* pe_fence_op | ( | pe_node_t * | node, | 
| const char * | op, | ||
| bool | optional, | ||
| const char * | reason, | ||
| bool | priority_delay, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 1081 of file pe_actions.c.
| void pe_free_action | ( | pe_action_t * | action | ) | 
Definition at line 1193 of file pe_actions.c.
| int pe_get_configured_timeout | ( | pe_resource_t * | rsc, | 
| const char * | action, | ||
| pe_working_set_t * | data_set | ||
| ) | 
Definition at line 1215 of file pe_actions.c.
| gint sort_op_by_callid | ( | gconstpointer | a, | 
| gconstpointer | b | ||
| ) | 
Definition at line 1627 of file pe_actions.c.
 1.8.14