pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Functions | Variables
scheduler.c File Reference
#include <crm_internal.h>
#include <stdint.h>
#include <errno.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/scheduler.h>
Include dependency graph for scheduler.c:

Go to the source code of this file.

Functions

pcmk_node_tpcmk_get_dc (const pcmk_scheduler_t *scheduler)
 
enum pe_quorum_policy pcmk_get_no_quorum_policy (const pcmk_scheduler_t *scheduler)
 
int pcmk_set_scheduler_cib (pcmk_scheduler_t *scheduler, xmlNode *cib)
 
bool pcmk_has_quorum (const pcmk_scheduler_t *scheduler)
 
pcmk_node_tpcmk_find_node (const pcmk_scheduler_t *scheduler, const char *node_name)
 Find a node by name in scheduler data. More...
 

Variables

uint32_t pcmk__warnings = 0
 
gboolean was_processing_error = FALSE
 
gboolean was_processing_warning = FALSE
 

Function Documentation

◆ pcmk_find_node()

pcmk_node_t* pcmk_find_node ( const pcmk_scheduler_t scheduler,
const char *  node_name 
)

Find a node by name in scheduler data.

Parameters
[in]schedulerScheduler data
[in]node_nameName of node to find
Returns
Node from scheduler data that matches node_name if any, otherwise NULL

Definition at line 103 of file scheduler.c.

◆ pcmk_get_dc()

pcmk_node_t* pcmk_get_dc ( const pcmk_scheduler_t scheduler)

Definition at line 33 of file scheduler.c.

◆ pcmk_get_no_quorum_policy()

enum pe_quorum_policy pcmk_get_no_quorum_policy ( const pcmk_scheduler_t scheduler)

Definition at line 47 of file scheduler.c.

◆ pcmk_has_quorum()

bool pcmk_has_quorum ( const pcmk_scheduler_t scheduler)

Definition at line 85 of file scheduler.c.

◆ pcmk_set_scheduler_cib()

int pcmk_set_scheduler_cib ( pcmk_scheduler_t scheduler,
xmlNode *  cib 
)

Definition at line 67 of file scheduler.c.

Variable Documentation

◆ pcmk__warnings

uint32_t pcmk__warnings = 0

Definition at line 19 of file scheduler.c.

◆ was_processing_error

gboolean was_processing_error = FALSE
Deprecated:
Do not use

Definition at line 21 of file scheduler.c.

◆ was_processing_warning

gboolean was_processing_warning = FALSE

Definition at line 22 of file scheduler.c.