root/include/crm/pengine/status.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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 
  25 /*!
  26  * \file
  27  * \brief Cluster status and scheduling
  28  * \ingroup pengine
  29  */
  30 
  31 const char *rsc_printable_id(const pcmk_resource_t *rsc);
  32 
  33 // NOTE: sbd (as of at least 1.5.2) uses this
  34 gboolean cluster_status(pcmk_scheduler_t *scheduler);
  35 
  36 // NOTE: sbd (as of at least 1.5.2) uses this
  37 pcmk_scheduler_t *pe_new_working_set(void);
  38 
  39 // NOTE: sbd (as of at least 1.5.2) uses this
  40 void pe_free_working_set(pcmk_scheduler_t *scheduler);
  41 
  42 void set_working_set_defaults(pcmk_scheduler_t *scheduler);
  43 void cleanup_calculations(pcmk_scheduler_t *scheduler);
  44 
  45 // NOTE: sbd (as of at least 1.5.2) uses this
  46 void pe_reset_working_set(pcmk_scheduler_t *scheduler);
  47 
  48 pcmk_resource_t *pe_find_resource(GList *rsc_list, const char *id_rh);
  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,
  55                          pcmk_scheduler_t *scheduler);
  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)
  61 #include <crm/pengine/status_compat.h>
  62 #endif
  63 
  64 #ifdef __cplusplus
  65 }
  66 #endif
  67 
  68 #endif

/* [previous][next][first][last][top][bottom][index][help] */