10 #ifndef PCMK__CRM_PENGINE_STATUS__H 11 # define PCMK__CRM_PENGINE_STATUS__H 44 const char *node_name);
45 GList *
find_operations(
const char *rsc,
const char *node, gboolean active_filter,
103 while (rsc->
parent != NULL) {
GList * find_operations(const char *rsc, const char *node, gboolean active_filter, pcmk_scheduler_t *scheduler)
pcmk_resource_t * pe_find_resource_with_flags(GList *rsc_list, const char *id, enum pe_find flags)
pe_find
Search options for resources (exact resource ID always matches)
void pe_reset_working_set(pcmk_scheduler_t *scheduler)
Reset scheduler data to default state without freeing it.
const char * rsc_printable_id(const pcmk_resource_t *rsc)
int pe_bundle_replicas(const pcmk_resource_t *rsc)
Get the number of configured replicas in a bundle.
Implementation of pcmk_scheduler_t.
gboolean cluster_status(pcmk_scheduler_t *scheduler)
pcmk_resource_t * parent
Resource's parent resource, if any.
pcmk_resource_t * pe_find_resource(GList *rsc_list, const char *id_rh)
Implementation of pcmk_resource_t.
pcmk_node_t * pe_find_node_id(const GList *node_list, const char *id)
Find a node by ID in a list of nodes.
pcmk_node_t * pe_find_node(const GList *node_list, const char *node_name)
Find a node by name in a list of nodes.
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
void set_working_set_defaults(pcmk_scheduler_t *scheduler)
unsigned long long flags
Group of enum pcmk_rsc_flags.
Implementation of pcmk_node_t.
enum pe_obj_types variant
Resource variant.
pcmk_scheduler_t * pe_new_working_set(void)
Create a new object to hold scheduler data.
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.
void cleanup_calculations(pcmk_scheduler_t *scheduler)
Reset scheduler data to defaults without freeing it or constraints.
void pe_free_working_set(pcmk_scheduler_t *scheduler)
Free scheduler data.
pcmk_scheduler_t * scheduler
void calculate_active_ops(const GList *sorted_op_list, int *start_index, int *stop_index)
Data types for cluster status.
Whether resource is not an anonymous clone instance.