pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Functions
pcmk_sched_resource.c File Reference
#include <crm_internal.h>
#include <stdlib.h>
#include <string.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_resource.c:

Go to the source code of this file.

Functions

bool pcmk__rsc_agent_changed (pcmk_resource_t *rsc, pcmk_node_t *node, const xmlNode *rsc_entry, bool active_on_node)
 
GList * pcmk__rscs_matching_id (const char *id, const pcmk_scheduler_t *scheduler)
 
void pcmk__set_assignment_methods (pcmk_scheduler_t *scheduler)
 
GList * pcmk__colocated_resources (const pcmk_resource_t *rsc, const pcmk_resource_t *orig_rsc, GList *colocated_rscs)
 
void pcmk__noop_add_graph_meta (const pcmk_resource_t *rsc, xmlNode *xml)
 
void pcmk__output_resource_actions (pcmk_resource_t *rsc)
 
bool pcmk__assign_resource (pcmk_resource_t *rsc, pcmk_node_t *node, bool force, bool stop_if_fail)
 
void pcmk__unassign_resource (pcmk_resource_t *rsc)
 
bool pcmk__threshold_reached (pcmk_resource_t *rsc, const pcmk_node_t *node, pcmk_resource_t **failed)
 
void pcmk__sort_resources (pcmk_scheduler_t *scheduler)
 

Function Documentation

◆ pcmk__assign_resource()

bool pcmk__assign_resource ( pcmk_resource_t rsc,
pcmk_node_t node,
bool  force,
bool  stop_if_fail 
)

Definition at line 404 of file pcmk_sched_resource.c.

◆ pcmk__colocated_resources()

GList* pcmk__colocated_resources ( const pcmk_resource_t rsc,
const pcmk_resource_t orig_rsc,
GList *  colocated_rscs 
)

Definition at line 242 of file pcmk_sched_resource.c.

◆ pcmk__noop_add_graph_meta()

void pcmk__noop_add_graph_meta ( const pcmk_resource_t rsc,
xmlNode *  xml 
)

Definition at line 306 of file pcmk_sched_resource.c.

◆ pcmk__output_resource_actions()

void pcmk__output_resource_actions ( pcmk_resource_t rsc)

Definition at line 317 of file pcmk_sched_resource.c.

◆ pcmk__rsc_agent_changed()

bool pcmk__rsc_agent_changed ( pcmk_resource_t rsc,
pcmk_node_t node,
const xmlNode *  rsc_entry,
bool  active_on_node 
)

Definition at line 111 of file pcmk_sched_resource.c.

◆ pcmk__rscs_matching_id()

GList* pcmk__rscs_matching_id ( const char *  id,
const pcmk_scheduler_t scheduler 
)

Definition at line 183 of file pcmk_sched_resource.c.

◆ pcmk__set_assignment_methods()

void pcmk__set_assignment_methods ( pcmk_scheduler_t scheduler)

Definition at line 218 of file pcmk_sched_resource.c.

◆ pcmk__sort_resources()

void pcmk__sort_resources ( pcmk_scheduler_t scheduler)

Definition at line 765 of file pcmk_sched_resource.c.

◆ pcmk__threshold_reached()

bool pcmk__threshold_reached ( pcmk_resource_t rsc,
const pcmk_node_t node,
pcmk_resource_t **  failed 
)

Definition at line 571 of file pcmk_sched_resource.c.

◆ pcmk__unassign_resource()

void pcmk__unassign_resource ( pcmk_resource_t rsc)

Definition at line 525 of file pcmk_sched_resource.c.