pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pcmk_sched_utils.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
Include dependency graph for pcmk_sched_utils.c:

Go to the source code of this file.


pe__location_trsc2node_new (const char *id, pe_resource_t *rsc, int node_weight, const char *discover_mode, pe_node_t *foo_node, pe_working_set_t *data_set)
gboolean can_run_resources (const node_t *node)
GList * sort_nodes_by_weight (GList *nodes, pe_node_t *active_node, pe_working_set_t *data_set)
void native_deallocate (resource_t *rsc)
gboolean native_assign_node (resource_t *rsc, GListPtr nodes, node_t *chosen, gboolean force)
void log_action (unsigned int log_level, const char *pre_text, action_t *action, gboolean details)
gboolean can_run_any (GHashTable *nodes)
pe_action_tcreate_pseudo_resource_op (resource_t *rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set)
pe_action_tpe_cancel_op (pe_resource_t *rsc, const char *task, guint interval_ms, pe_node_t *node, pe_working_set_t *data_set)
pe_action_tsched_shutdown_op (pe_node_t *node, pe_working_set_t *data_set)

Function Documentation

gboolean can_run_any ( GHashTable *  nodes)

Definition at line 376 of file pcmk_sched_utils.c.

gboolean can_run_resources ( const node_t node)

Definition at line 61 of file pcmk_sched_utils.c.

pe_action_t* create_pseudo_resource_op ( resource_t rsc,
const char *  task,
bool  optional,
bool  runnable,
pe_working_set_t data_set 

Definition at line 396 of file pcmk_sched_utils.c.

void log_action ( unsigned int  log_level,
const char *  pre_text,
action_t action,
gboolean  details 

Definition at line 289 of file pcmk_sched_utils.c.

gboolean native_assign_node ( resource_t rsc,
GListPtr  nodes,
node_t chosen,
gboolean  force 

Definition at line 211 of file pcmk_sched_utils.c.

void native_deallocate ( resource_t rsc)

Definition at line 193 of file pcmk_sched_utils.c.

pe_action_t* pe_cancel_op ( pe_resource_t rsc,
const char *  task,
guint  interval_ms,
pe_node_t node,
pe_working_set_t data_set 

Definition at line 420 of file pcmk_sched_utils.c.

pe__location_t* rsc2node_new ( const char *  id,
pe_resource_t rsc,
int  node_weight,
const char *  discover_mode,
pe_node_t foo_node,
pe_working_set_t data_set 

Definition at line 13 of file pcmk_sched_utils.c.

pe_action_t* sched_shutdown_op ( pe_node_t node,
pe_working_set_t data_set 

Definition at line 458 of file pcmk_sched_utils.c.

GList* sort_nodes_by_weight ( GList *  nodes,
pe_node_t active_node,
pe_working_set_t data_set 

Definition at line 184 of file pcmk_sched_utils.c.