pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
status.c File Reference
#include <crm_internal.h>
#include <stdint.h>
#include <sys/param.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/crm.h>
#include <crm/common/xml.h>
#include <crm/common/cib_internal.h>
#include <crm/pengine/internal.h>
#include <pe_status_private.h>
#include <crm/pengine/status_compat.h>
Include dependency graph for status.c:

Go to the source code of this file.

Macros

#define XPATH_DEPRECATED_RULES
 

Functions

gboolean cluster_status (pcmk_scheduler_t *scheduler)
 
pcmk_resource_tpe_find_resource (GList *rsc_list, const char *id)
 
pcmk_resource_tpe_find_resource_with_flags (GList *rsc_list, const char *id, enum pe_find flags)
 
pcmk_node_tpe_find_node_any (const GList *nodes, const char *id, const char *uname)
 Find a node by name or ID in a list of nodes.
 
pcmk_node_tpe_find_node_id (const GList *nodes, const char *id)
 Find a node by ID in a list of nodes.
 
pcmk_scheduler_tpe_new_working_set (void)
 
void pe_reset_working_set (pcmk_scheduler_t *scheduler)
 
void cleanup_calculations (pcmk_scheduler_t *scheduler)
 
void set_working_set_defaults (pcmk_scheduler_t *scheduler)
 
void pe_free_working_set (pcmk_scheduler_t *scheduler)
 
pcmk_node_tpe_find_node (const GList *nodes, const char *node_name)
 

Macro Definition Documentation

◆ XPATH_DEPRECATED_RULES

#define XPATH_DEPRECATED_RULES
Value:
#define PCMK_XE_EXPRESSION
Definition xml_names.h:109
#define PCMK_XE_OP_DEFAULTS
Definition xml_names.h:147
#define PCMK_XE_OP
Definition xml_names.h:146

Definition at line 25 of file status.c.

Function Documentation

◆ cleanup_calculations()

void cleanup_calculations ( pcmk_scheduler_t * scheduler)
Deprecated
Use pcmk_reset_scheduler() instead

Definition at line 285 of file status.c.

◆ cluster_status()

gboolean cluster_status ( pcmk_scheduler_t * scheduler)

Definition at line 73 of file status.c.

◆ pe_find_node()

pcmk_node_t * pe_find_node ( const GList * node_list,
const char * node_name )
Deprecated
Use pcmk_find_node() with scheduler object instead

Definition at line 363 of file status.c.

◆ pe_find_node_any()

pcmk_node_t * pe_find_node_any ( const GList * nodes,
const char * id,
const char * uname )

Find a node by name or ID in a list of nodes.

Parameters
[in]nodesList of nodes (as pcmk_node_t*)
[in]idIf not NULL, ID of node to find
[in]node_nameIf not NULL, name of node to find
Returns
Node from nodes that matches id if any, otherwise node from nodes that matches uname if any, otherwise NULL

Definition at line 226 of file status.c.

◆ pe_find_node_id()

pcmk_node_t * pe_find_node_id ( const GList * nodes,
const char * id )

Find a node by ID in a list of nodes.

Parameters
[in]nodesList of nodes (as pcmk_node_t*)
[in]idID of node to find
Returns
Node from nodes that matches id if any, otherwise NULL

Definition at line 248 of file status.c.

◆ pe_find_resource()

pcmk_resource_t * pe_find_resource ( GList * rsc_list,
const char * id )

Definition at line 191 of file status.c.

◆ pe_find_resource_with_flags()

pcmk_resource_t * pe_find_resource_with_flags ( GList * rsc_list,
const char * id,
enum pe_find flags )

Definition at line 197 of file status.c.

◆ pe_free_working_set()

void pe_free_working_set ( pcmk_scheduler_t * scheduler)
Deprecated
Use pcmk_free_scheduler() instead

Definition at line 357 of file status.c.

◆ pe_new_working_set()

pcmk_scheduler_t * pe_new_working_set ( void )
Deprecated
Use pcmk_new_scheduler() instead

Definition at line 270 of file status.c.

◆ pe_reset_working_set()

void pe_reset_working_set ( pcmk_scheduler_t * scheduler)
Deprecated
Use pcmk_reset_scheduler() instead

Definition at line 276 of file status.c.

◆ set_working_set_defaults()

void set_working_set_defaults ( pcmk_scheduler_t * scheduler)
Deprecated
Use pcmk_reset_scheduler() instead

Definition at line 336 of file status.c.