pacemaker 2.1.8-2.1.8
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
status.h
Go to the documentation of this file.
1/*
2 * Copyright 2004-2024 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#ifndef PCMK__CRM_PENGINE_STATUS__H
11# define PCMK__CRM_PENGINE_STATUS__H
12
13# include <glib.h> // gboolean
14# include <stdbool.h> // bool
15# include <crm/common/util.h> // pcmk_is_set()
16# include <crm/common/iso8601.h>
17# include <crm/pengine/common.h>
18# include <crm/pengine/pe_types.h> // pcmk_node_t, pcmk_resource_t, etc.
19# include <crm/pengine/complex.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
31const char *rsc_printable_id(const pcmk_resource_t *rsc);
32
33// NOTE: sbd (as of at least 1.5.2) uses this
35
36// NOTE: sbd (as of at least 1.5.2) uses this
38
39// NOTE: sbd (as of at least 1.5.2) uses this
41
44
45// NOTE: sbd (as of at least 1.5.2) uses this
47
48pcmk_resource_t *pe_find_resource(GList *rsc_list, const char *id_rh);
49pcmk_resource_t *pe_find_resource_with_flags(GList *rsc_list, const char *id,
50 enum pe_find flags);
51pcmk_node_t *pe_find_node_id(const GList *node_list, const char *id);
52pcmk_node_t *pe_find_node_any(const GList *node_list, const char *id,
53 const char *node_name);
54GList *find_operations(const char *rsc, const char *node, gboolean active_filter,
56void calculate_active_ops(const GList *sorted_op_list, int *start_index,
57 int *stop_index);
59
60#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
62#endif
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif
uint64_t flags
Definition remote.c:3
Utility functions.
ISO_8601 Date handling.
pcmk_scheduler_t * scheduler
Data types for cluster status.
pe_find
Search options for resources (exact resource ID always matches)
Definition resources.h:183
pcmk_resource_t * pe_find_resource(GList *rsc_list, const char *id_rh)
Definition status.c:430
void pe_free_working_set(pcmk_scheduler_t *scheduler)
Free scheduler data.
Definition status.c:50
void calculate_active_ops(const GList *sorted_op_list, int *start_index, int *stop_index)
Definition unpack.c:2624
void pe_reset_working_set(pcmk_scheduler_t *scheduler)
Reset scheduler data to default state without freeing it.
Definition status.c:377
pcmk_node_t * pe_find_node_id(const GList *node_list, const char *id)
Find a node by ID in a list of nodes.
Definition status.c:487
int pe_bundle_replicas(const pcmk_resource_t *rsc)
Get the number of configured replicas in a bundle.
Definition bundle.c:2088
GList * find_operations(const char *rsc, const char *node, gboolean active_filter, pcmk_scheduler_t *scheduler)
Definition unpack.c:5131
pcmk_node_t * pe_find_node_any(const GList *node_list, const char *id, const char *node_name)
Find a node by name or ID in a list of nodes.
Definition status.c:465
pcmk_scheduler_t * pe_new_working_set(void)
Create a new object to hold scheduler data.
Definition status.c:34
gboolean cluster_status(pcmk_scheduler_t *scheduler)
Definition status.c:96
void cleanup_calculations(pcmk_scheduler_t *scheduler)
Reset scheduler data to defaults without freeing it or constraints.
Definition status.c:318
void set_working_set_defaults(pcmk_scheduler_t *scheduler)
Definition status.c:407
const char * rsc_printable_id(const pcmk_resource_t *rsc)
Definition utils.c:553
pcmk_resource_t * pe_find_resource_with_flags(GList *rsc_list, const char *id, enum pe_find flags)
Definition status.c:436
Deprecated Pacemaker scheduler utilities.