pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Data Structures | Macros | Functions
nodes.h File Reference

Scheduler API for nodes. More...

#include <stdbool.h>
#include <glib.h>
#include <crm/common/scheduler_types.h>
Include dependency graph for nodes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pe_node_shared_s
 
struct  pe_node_s
 

Macros

#define PCMK_NODE_ATTR_MAINTENANCE   "maintenance"
 
#define PCMK_NODE_ATTR_STANDBY   "standby"
 
#define PCMK_NODE_ATTR_TERMINATE   "terminate"
 

Enumerations

enum  node_type {
  pcmk_node_variant_cluster = 1, pcmk_node_variant_remote = 2, node_ping = 0, node_member = pcmk_node_variant_cluster,
  node_remote = pcmk_node_variant_remote
}
 
enum  pe_discover_e {
  pcmk_probe_always = 0, pcmk_probe_never = 1, pcmk_probe_exclusive = 2, pe_discover_always = pcmk_probe_always,
  pe_discover_never = pcmk_probe_never, pe_discover_exclusive = pcmk_probe_exclusive
}
 

Functions

bool pcmk_node_is_online (const pcmk_node_t *node)
 
bool pcmk_node_is_pending (const pcmk_node_t *node)
 
bool pcmk_node_is_clean (const pcmk_node_t *node)
 
bool pcmk_node_is_shutting_down (const pcmk_node_t *node)
 
bool pcmk_node_is_in_maintenance (const pcmk_node_t *node)
 
bool pcmk_foreach_active_resource (pcmk_node_t *node, bool(*fn)(pcmk_resource_t *, void *), void *user_data)
 

Detailed Description

Scheduler API for nodes.

Definition in file nodes.h.

Macro Definition Documentation

◆ PCMK_NODE_ATTR_MAINTENANCE

#define PCMK_NODE_ATTR_MAINTENANCE   "maintenance"

Definition at line 30 of file nodes.h.

◆ PCMK_NODE_ATTR_STANDBY

#define PCMK_NODE_ATTR_STANDBY   "standby"

Definition at line 31 of file nodes.h.

◆ PCMK_NODE_ATTR_TERMINATE

#define PCMK_NODE_ATTR_TERMINATE   "terminate"

Definition at line 32 of file nodes.h.

Enumeration Type Documentation

◆ node_type

enum node_type
Deprecated:
Do not use (public access will be removed in a future release)
Enumerator
pcmk_node_variant_cluster 
pcmk_node_variant_remote 
node_ping 
node_member 
node_remote 

Definition at line 38 of file nodes.h.

◆ pe_discover_e

Deprecated:
Do not use (public access will be removed in a future release)
Enumerator
pcmk_probe_always 
pcmk_probe_never 
pcmk_probe_exclusive 
pe_discover_always 
pe_discover_never 
pe_discover_exclusive 

Definition at line 54 of file nodes.h.

Function Documentation

◆ pcmk_foreach_active_resource()

bool pcmk_foreach_active_resource ( pcmk_node_t node,
bool(*)(pcmk_resource_t *, void *)  fn,
void *  user_data 
)

Definition at line 107 of file nodes.c.

◆ pcmk_node_is_clean()

bool pcmk_node_is_clean ( const pcmk_node_t node)

Definition at line 61 of file nodes.c.

◆ pcmk_node_is_in_maintenance()

bool pcmk_node_is_in_maintenance ( const pcmk_node_t node)

Definition at line 89 of file nodes.c.

◆ pcmk_node_is_online()

bool pcmk_node_is_online ( const pcmk_node_t node)

Definition at line 24 of file nodes.c.

◆ pcmk_node_is_pending()

bool pcmk_node_is_pending ( const pcmk_node_t node)

Definition at line 42 of file nodes.c.

◆ pcmk_node_is_shutting_down()

bool pcmk_node_is_shutting_down ( const pcmk_node_t node)

Definition at line 75 of file nodes.c.