pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
|
Scheduler API for nodes. More...
#include <stdbool.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/scheduler_types.h>
Go to the source code of this file.
Data Structures | |
struct | pcmk__node_details |
struct | pcmk__scored_node |
Macros | |
#define | PCMK_NODE_ATTR_MAINTENANCE "maintenance" |
#define | PCMK_NODE_ATTR_STANDBY "standby" |
#define | PCMK_NODE_ATTR_TERMINATE "terminate" |
Typedefs | |
typedef struct pcmk__node_private | pcmk__node_private_t |
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) |
const char * | pcmk_cib_node_shutdown (xmlNode *cib, const char *node) |
Get value of a node's shutdown attribute from CIB, if present. More... | |
Scheduler API for nodes.
Definition in file nodes.h.
typedef struct pcmk__node_private pcmk__node_private_t |
const char* pcmk_cib_node_shutdown | ( | xmlNode * | cib, |
const char * | node | ||
) |
Get value of a node's shutdown attribute from CIB, if present.
[in] | cib | CIB to check |
[in] | node | Name of node to check |
node
in cib
if any, otherwise NULL cib
and so is valid only for the lifetime of that object. bool pcmk_foreach_active_resource | ( | pcmk_node_t * | node, |
bool(*)(pcmk_resource_t *, void *) | fn, | ||
void * | user_data | ||
) |
bool pcmk_node_is_clean | ( | const pcmk_node_t * | node | ) |
bool pcmk_node_is_in_maintenance | ( | const pcmk_node_t * | node | ) |
bool pcmk_node_is_online | ( | const pcmk_node_t * | node | ) |
bool pcmk_node_is_pending | ( | const pcmk_node_t * | node | ) |
bool pcmk_node_is_shutting_down | ( | const pcmk_node_t * | node | ) |