pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Functions | Variables
complex.c File Reference
#include <crm_internal.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/internal.h>
#include <crm/msg_xml.h>
#include <crm/common/xml_internal.h>
#include "pe_status_private.h"
Include dependency graph for complex.c:

Go to the source code of this file.

Functions

void populate_hash (xmlNode *nvpair_list, GHashTable *hash, const char **attrs, int attrs_length)
 
void get_meta_attributes (GHashTable *meta_hash, pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set)
 
void get_rsc_attributes (GHashTable *meta_hash, const pe_resource_t *rsc, const pe_node_t *node, pe_working_set_t *data_set)
 
GHashTable * pe_rsc_params (pe_resource_t *rsc, const pe_node_t *node, pe_working_set_t *data_set)
 Get a table of resource parameters. More...
 
int pe__unpack_resource (xmlNode *xml_obj, pe_resource_t **rsc, pe_resource_t *parent, pe_working_set_t *data_set)
 
void common_update_score (pe_resource_t *rsc, const char *id, int score)
 
gboolean is_parent (pe_resource_t *child, pe_resource_t *rsc)
 
pe_resource_tuber_parent (pe_resource_t *rsc)
 
void common_free (pe_resource_t *rsc)
 
pe_node_tpe__find_active_on (const pe_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean)
 
pe_node_tpe__find_active_requires (const pe_resource_t *rsc, unsigned int *count)
 
void pe__count_common (pe_resource_t *rsc)
 
void pe__set_next_role (pe_resource_t *rsc, enum rsc_role_e role, const char *why)
 

Variables

resource_object_functions_t resource_class_functions []
 

Function Documentation

◆ common_free()

void common_free ( pe_resource_t rsc)

Definition at line 926 of file complex.c.

◆ common_update_score()

void common_update_score ( pe_resource_t rsc,
const char *  id,
int  score 
)

Definition at line 873 of file complex.c.

◆ get_meta_attributes()

void get_meta_attributes ( GHashTable *  meta_hash,
pe_resource_t rsc,
pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 142 of file complex.c.

◆ get_rsc_attributes()

void get_rsc_attributes ( GHashTable *  meta_hash,
const pe_resource_t rsc,
const pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 192 of file complex.c.

◆ is_parent()

gboolean is_parent ( pe_resource_t child,
pe_resource_t rsc 
)

Definition at line 895 of file complex.c.

◆ pe__count_common()

void pe__count_common ( pe_resource_t rsc)

Definition at line 1092 of file complex.c.

◆ pe__find_active_on()

pe_node_t* pe__find_active_on ( const pe_resource_t rsc,
unsigned int *  count_all,
unsigned int *  count_clean 
)

Definition at line 1003 of file complex.c.

◆ pe__find_active_requires()

pe_node_t* pe__find_active_requires ( const pe_resource_t rsc,
unsigned int *  count 
)

Definition at line 1083 of file complex.c.

◆ pe__set_next_role()

void pe__set_next_role ( pe_resource_t rsc,
enum rsc_role_e  role,
const char *  why 
)

Definition at line 1120 of file complex.c.

◆ pe__unpack_resource()

int pe__unpack_resource ( xmlNode *  xml_obj,
pe_resource_t **  rsc,
pe_resource_t parent,
pe_working_set_t data_set 
)

Definition at line 562 of file complex.c.

◆ pe_rsc_params()

GHashTable* pe_rsc_params ( pe_resource_t rsc,
const pe_node_t node,
pe_working_set_t data_set 
)

Get a table of resource parameters.

Parameters
[in,out]rscResource to query
[in]nodeNode for evaluating rules (NULL for defaults)
[in]data_setCluster working set
Returns
Hash table containing resource parameter names and values (or NULL if rsc or data_set is NULL)
Note
The returned table will be destroyed when the resource is freed, so callers should not destroy it.

Definition at line 429 of file complex.c.

◆ populate_hash()

void populate_hash ( xmlNode *  nvpair_list,
GHashTable *  hash,
const char **  attrs,
int  attrs_length 
)

◆ uber_parent()

pe_resource_t* uber_parent ( pe_resource_t rsc)

Definition at line 912 of file complex.c.

Variable Documentation

◆ resource_class_functions

resource_object_functions_t resource_class_functions[]

Definition at line 21 of file complex.c.