pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
pcmki_sched_allocate.h File Reference
#include <glib.h>
#include <crm/common/xml.h>
#include <crm/pengine/status.h>
#include <crm/pengine/complex.h>
#include <crm/pengine/internal.h>
#include <pcmki/pcmki_scheduler.h>
Include dependency graph for pcmki_sched_allocate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  resource_alloc_functions_s
 

Functions

GHashTable * rsc_merge_weights (resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, enum pe_weights flags)
 
GHashTable * clone_merge_weights (resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, enum pe_weights flags)
 
GHashTable * pcmk__bundle_merge_weights (pe_resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, enum pe_weights flags)
 
GHashTable * native_merge_weights (resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, enum pe_weights flags)
 
GHashTable * group_merge_weights (resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, enum pe_weights flags)
 
node_tnative_color (resource_t *rsc, node_t *preferred, pe_working_set_t *data_set)
 
void native_create_actions (resource_t *rsc, pe_working_set_t *data_set)
 
void native_internal_constraints (resource_t *rsc, pe_working_set_t *data_set)
 
void native_rsc_colocation_lh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void native_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void rsc_ticket_constraint (resource_t *lh_rsc, rsc_ticket_t *rsc_ticket, pe_working_set_t *data_set)
 
enum pe_action_flags native_action_flags (action_t *action, node_t *node)
 
void native_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void native_expand (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean native_create_probe (resource_t *rsc, node_t *node, action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void native_append_meta (resource_t *rsc, xmlNode *xml)
 
node_tgroup_color (resource_t *rsc, node_t *preferred, pe_working_set_t *data_set)
 
void group_create_actions (resource_t *rsc, pe_working_set_t *data_set)
 
void group_internal_constraints (resource_t *rsc, pe_working_set_t *data_set)
 
void group_rsc_colocation_lh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void group_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
enum pe_action_flags group_action_flags (action_t *action, node_t *node)
 
void group_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void group_expand (resource_t *rsc, pe_working_set_t *data_set)
 
void group_append_meta (resource_t *rsc, xmlNode *xml)
 
pe_node_tpcmk__bundle_color (pe_resource_t *rsc, pe_node_t *preferred, pe_working_set_t *data_set)
 
void pcmk__bundle_create_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean pcmk__bundle_create_probe (pe_resource_t *rsc, pe_node_t *node, pe_action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void pcmk__bundle_internal_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void pcmk__bundle_rsc_colocation_lh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void pcmk__bundle_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void pcmk__bundle_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
enum pe_action_flags pcmk__bundle_action_flags (pe_action_t *action, pe_node_t *node)
 
void pcmk__bundle_expand (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void pcmk__bundle_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
node_tclone_color (resource_t *rsc, node_t *preferred, pe_working_set_t *data_set)
 
void clone_create_actions (resource_t *rsc, pe_working_set_t *data_set)
 
void clone_internal_constraints (resource_t *rsc, pe_working_set_t *data_set)
 
void clone_rsc_colocation_lh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_colocation_rh (pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
enum pe_action_flags clone_action_flags (action_t *action, node_t *node)
 
void clone_expand (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_create_probe (resource_t *rsc, node_t *node, action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void clone_append_meta (resource_t *rsc, xmlNode *xml)
 
void apply_master_prefs (resource_t *rsc)
 
node_tcolor_promotable (resource_t *rsc, pe_working_set_t *data_set)
 
void create_promotable_actions (resource_t *rsc, pe_working_set_t *data_set)
 
void promote_demote_constraints (resource_t *rsc, pe_working_set_t *data_set)
 
void promotable_constraints (resource_t *rsc, pe_working_set_t *data_set)
 
void promotable_colocation_rh (resource_t *lh_rsc, resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
gboolean is_active (pe__location_t *cons)
 
gboolean unpack_rsc_order (xmlNode *xml_obj, pe_working_set_t *data_set)
 
gboolean unpack_rsc_colocation (xmlNode *xml_obj, pe_working_set_t *data_set)
 
gboolean unpack_location (xmlNode *xml_obj, pe_working_set_t *data_set)
 
gboolean unpack_rsc_ticket (xmlNode *xml_obj, pe_working_set_t *data_set)
 
void LogNodeActions (pe_working_set_t *data_set, gboolean terminal)
 
void LogActions (resource_t *rsc, pe_working_set_t *data_set, gboolean terminal)
 
void pcmk__bundle_log_actions (pe_resource_t *rsc, pe_working_set_t *data_set, gboolean terminal)
 
void rsc_stonith_ordering (resource_t *rsc, action_t *stonith_op, pe_working_set_t *data_set)
 
enum pe_graph_flags native_update_actions (pe_action_t *first, pe_action_t *then, pe_node_t *node, enum pe_action_flags flags, enum pe_action_flags filter, enum pe_ordering type, pe_working_set_t *data_set)
 
enum pe_graph_flags group_update_actions (pe_action_t *first, pe_action_t *then, pe_node_t *node, enum pe_action_flags flags, enum pe_action_flags filter, enum pe_ordering type, pe_working_set_t *data_set)
 
enum pe_graph_flags pcmk__multi_update_actions (pe_action_t *first, pe_action_t *then, pe_node_t *node, enum pe_action_flags flags, enum pe_action_flags filter, enum pe_ordering type, pe_working_set_t *data_set)
 
gboolean update_action_flags (action_t *action, enum pe_action_flags flags, const char *source, int line)
 
gboolean update_action (pe_action_t *action, pe_working_set_t *data_set)
 
void complex_set_cmds (resource_t *rsc)
 
void pcmk__log_transition_summary (const char *filename)
 
void clone_create_pseudo_actions (resource_t *rsc, GListPtr children, notify_data_t **start_notify, notify_data_t **stop_notify, pe_working_set_t *data_set)
 

Variables

resource_alloc_functions_t resource_class_alloc_functions []
 

Function Documentation

void apply_master_prefs ( resource_t rsc)

Definition at line 534 of file pcmk_sched_promotable.c.

enum pe_action_flags clone_action_flags ( action_t action,
node_t node 
)

Definition at line 1208 of file pcmk_sched_clone.c.

void clone_append_meta ( resource_t rsc,
xmlNode *  xml 
)

Definition at line 1423 of file pcmk_sched_clone.c.

node_t* clone_color ( resource_t rsc,
node_t preferred,
pe_working_set_t data_set 
)

Definition at line 591 of file pcmk_sched_clone.c.

void clone_create_actions ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 805 of file pcmk_sched_clone.c.

gboolean clone_create_probe ( resource_t rsc,
node_t node,
action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 1383 of file pcmk_sched_clone.c.

void clone_create_pseudo_actions ( resource_t rsc,
GListPtr  children,
notify_data_t **  start_notify,
notify_data_t **  stop_notify,
pe_working_set_t data_set 
)

Definition at line 818 of file pcmk_sched_clone.c.

void clone_expand ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1230 of file pcmk_sched_clone.c.

void clone_internal_constraints ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 880 of file pcmk_sched_clone.c.

GHashTable* clone_merge_weights ( resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
enum pe_weights  flags 
)

Definition at line 1469 of file pcmk_sched_clone.c.

void clone_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1017 of file pcmk_sched_clone.c.

void clone_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1029 of file pcmk_sched_clone.c.

void clone_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 1214 of file pcmk_sched_clone.c.

node_t* color_promotable ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 632 of file pcmk_sched_promotable.c.

void complex_set_cmds ( resource_t rsc)

Definition at line 763 of file pcmk_sched_allocate.c.

void create_promotable_actions ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 786 of file pcmk_sched_promotable.c.

enum pe_action_flags group_action_flags ( action_t action,
node_t node 
)

Definition at line 372 of file pcmk_sched_group.c.

void group_append_meta ( resource_t rsc,
xmlNode *  xml 
)

Definition at line 515 of file pcmk_sched_group.c.

node_t* group_color ( resource_t rsc,
node_t preferred,
pe_working_set_t data_set 
)

Definition at line 18 of file pcmk_sched_group.c.

void group_create_actions ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 79 of file pcmk_sched_group.c.

void group_expand ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 468 of file pcmk_sched_group.c.

void group_internal_constraints ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 162 of file pcmk_sched_group.c.

GHashTable* group_merge_weights ( resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
enum pe_weights  flags 
)

Definition at line 483 of file pcmk_sched_group.c.

void group_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 282 of file pcmk_sched_group.c.

void group_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 324 of file pcmk_sched_group.c.

void group_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 439 of file pcmk_sched_group.c.

enum pe_graph_flags group_update_actions ( pe_action_t first,
pe_action_t then,
pe_node_t node,
enum pe_action_flags  flags,
enum pe_action_flags  filter,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 413 of file pcmk_sched_group.c.

gboolean is_active ( pe__location_t cons)

Definition at line 2952 of file pcmk_sched_constraints.c.

void LogActions ( resource_t rsc,
pe_working_set_t data_set,
gboolean  terminal 
)

Definition at line 2365 of file pcmk_sched_native.c.

void LogNodeActions ( pe_working_set_t data_set,
gboolean  terminal 
)

Definition at line 2711 of file pcmk_sched_allocate.c.

enum pe_action_flags native_action_flags ( action_t action,
node_t node 
)

Definition at line 1914 of file pcmk_sched_native.c.

void native_append_meta ( resource_t rsc,
xmlNode *  xml 
)

Definition at line 3302 of file pcmk_sched_native.c.

node_t* native_color ( resource_t rsc,
node_t preferred,
pe_working_set_t data_set 
)

Definition at line 437 of file pcmk_sched_native.c.

void native_create_actions ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1116 of file pcmk_sched_native.c.

gboolean native_create_probe ( resource_t rsc,
node_t node,
action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 2762 of file pcmk_sched_native.c.

void native_expand ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 2217 of file pcmk_sched_native.c.

void native_internal_constraints ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1359 of file pcmk_sched_native.c.

GHashTable* native_merge_weights ( resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
enum pe_weights  flags 
)

Definition at line 297 of file pcmk_sched_native.c.

void native_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1572 of file pcmk_sched_native.c.

void native_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1782 of file pcmk_sched_native.c.

void native_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 2148 of file pcmk_sched_native.c.

enum pe_graph_flags native_update_actions ( pe_action_t first,
pe_action_t then,
pe_node_t node,
enum pe_action_flags  flags,
enum pe_action_flags  filter,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 1993 of file pcmk_sched_native.c.

enum pe_action_flags pcmk__bundle_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 542 of file pcmk_sched_bundle.c.

void pcmk__bundle_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1041 of file pcmk_sched_bundle.c.

pe_node_t* pcmk__bundle_color ( pe_resource_t rsc,
pe_node_t preferred,
pe_working_set_t data_set 
)

Definition at line 101 of file pcmk_sched_bundle.c.

void pcmk__bundle_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 195 of file pcmk_sched_bundle.c.

gboolean pcmk__bundle_create_probe ( pe_resource_t rsc,
pe_node_t node,
pe_action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 947 of file pcmk_sched_bundle.c.

void pcmk__bundle_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 884 of file pcmk_sched_bundle.c.

void pcmk__bundle_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 244 of file pcmk_sched_bundle.c.

void pcmk__bundle_log_actions ( pe_resource_t rsc,
pe_working_set_t data_set,
gboolean  terminal 
)

Definition at line 1054 of file pcmk_sched_bundle.c.

GHashTable* pcmk__bundle_merge_weights ( pe_resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
enum pe_weights  flags 
)

Definition at line 1046 of file pcmk_sched_bundle.c.

void pcmk__bundle_rsc_colocation_lh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 419 of file pcmk_sched_bundle.c.

void pcmk__bundle_rsc_colocation_rh ( pe_resource_t lh_rsc,
pe_resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 463 of file pcmk_sched_bundle.c.

void pcmk__bundle_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 852 of file pcmk_sched_bundle.c.

void pcmk__log_transition_summary ( const char *  filename)

Definition at line 2592 of file pcmk_sched_allocate.c.

enum pe_graph_flags pcmk__multi_update_actions ( pe_action_t first,
pe_action_t then,
pe_node_t node,
enum pe_action_flags  flags,
enum pe_action_flags  filter,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 799 of file pcmk_sched_bundle.c.

void promotable_colocation_rh ( resource_t lh_rsc,
resource_t rh_rsc,
rsc_colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 948 of file pcmk_sched_promotable.c.

void promotable_constraints ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 895 of file pcmk_sched_promotable.c.

void promote_demote_constraints ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 869 of file pcmk_sched_promotable.c.

GHashTable* rsc_merge_weights ( resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
enum pe_weights  flags 
)

Definition at line 304 of file pcmk_sched_native.c.

void rsc_stonith_ordering ( resource_t rsc,
action_t stonith_op,
pe_working_set_t data_set 
)

Definition at line 3234 of file pcmk_sched_native.c.

void rsc_ticket_constraint ( resource_t lh_rsc,
rsc_ticket_t rsc_ticket,
pe_working_set_t data_set 
)

Definition at line 1824 of file pcmk_sched_native.c.

gboolean unpack_location ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 950 of file pcmk_sched_constraints.c.

gboolean unpack_rsc_colocation ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 2551 of file pcmk_sched_constraints.c.

gboolean unpack_rsc_order ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 2074 of file pcmk_sched_constraints.c.

gboolean unpack_rsc_ticket ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 2875 of file pcmk_sched_constraints.c.

gboolean update_action ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 510 of file pcmk_sched_graph.c.

gboolean update_action_flags ( action_t action,
enum pe_action_flags  flags,
const char *  source,
int  line 
)

Definition at line 119 of file pcmk_sched_allocate.c.

Variable Documentation

resource_alloc_functions_t resource_class_alloc_functions[]

Definition at line 59 of file pcmk_sched_allocate.c.