pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
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
22 extern "C" {
23 #endif
24 
31 const 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 
48 pcmk_resource_t *pe_find_resource(GList *rsc_list, const char *id);
49 pcmk_resource_t *pe_find_resource_with_flags(GList *rsc_list, const char *id,
50  enum pe_find flags);
51 pcmk_node_t *pe_find_node_id(const GList *node_list, const char *id);
52 pcmk_node_t *pe_find_node_any(const GList *node_list, const char *id,
53  const char *node_name);
54 GList *find_operations(const char *rsc, const char *node, gboolean active_filter,
56 void calculate_active_ops(const GList *sorted_op_list, int *start_index,
57  int *stop_index);
58 int pe_bundle_replicas(const pcmk_resource_t *rsc);
59 
60 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
62 #endif
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif
GList * find_operations(const char *rsc, const char *node, gboolean active_filter, pcmk_scheduler_t *scheduler)
Definition: unpack.c:5164
pcmk_resource_t * pe_find_resource_with_flags(GList *rsc_list, const char *id, enum pe_find flags)
Definition: status.c:441
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)
Definition: status.c:435
void pe_reset_working_set(pcmk_scheduler_t *scheduler)
Reset scheduler data to default state without freeing it.
Definition: status.c:377
const char * rsc_printable_id(const pcmk_resource_t *rsc)
Definition: utils.c:553
int pe_bundle_replicas(const pcmk_resource_t *rsc)
Get the number of configured replicas in a bundle.
Definition: bundle.c:2089
gboolean cluster_status(pcmk_scheduler_t *scheduler)
Definition: status.c:96
Utility functions.
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:492
void set_working_set_defaults(pcmk_scheduler_t *scheduler)
Definition: status.c:407
ISO_8601 Date handling.
pcmk_scheduler_t * pe_new_working_set(void)
Create a new object to hold scheduler data.
Definition: status.c:34
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:470
void cleanup_calculations(pcmk_scheduler_t *scheduler)
Reset scheduler data to defaults without freeing it or constraints.
Definition: status.c:318
void pe_free_working_set(pcmk_scheduler_t *scheduler)
Free scheduler data.
Definition: status.c:50
pcmk_scheduler_t * scheduler
Deprecated Pacemaker scheduler utilities.
void calculate_active_ops(const GList *sorted_op_list, int *start_index, int *stop_index)
Definition: unpack.c:2657
Data types for cluster status.
uint64_t flags
Definition: remote.c:215