10 #ifndef PCMK__CRM_COMMON_RESOURCES_INTERNAL__H 11 #define PCMK__CRM_COMMON_RESOURCES_INTERNAL__H 15 #include <libxml/tree.h> 32 #define pcmk__set_rsc_flags(resource, flags_to_set) do { \ 33 (resource)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 34 LOG_TRACE, "Resource", (resource)->id, (resource)->flags, \ 35 (flags_to_set), #flags_to_set); \ 45 #define pcmk__clear_rsc_flags(resource, flags_to_clear) do { \ 46 (resource)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 47 LOG_TRACE, "Resource", (resource)->id, (resource)->flags, \ 48 (flags_to_clear), #flags_to_clear); \ 289 gboolean check_parent);
305 unsigned int *count_all,
306 unsigned int *count_clean);
468 #endif // PCMK__CRM_COMMON_RESOURCES_INTERNAL__H
Scheduler API for resources.
Type aliases needed to define scheduler objects.
GHashTable * parameter_cache
guint failure_expiration_ms
pcmk__rsc_variant
Resource variants supported by Pacemaker.
const pcmk__rsc_methods_t * fns
GList * ticket_constraints
pcmk_node_t * partial_migration_source
pcmk__multiply_active
How to recover a resource that is incorrectly active on multiple nodes.
pcmk_scheduler_t * scheduler
Scheduler API for resource roles.
enum pcmk__rsc_variant variant
enum pcmk__multiply_active multiply_active_policy
pcmk__rsc_flags
Resource scheduling flags.
pcmk_node_t * assigned_node
GList * with_this_colocations
const char * pcmk__multiply_active_text(const pcmk_resource_t *rsc)
Get readable description of a multiply-active recovery type.
Stop unexpected instances.
pcmk__resource_private_t * priv
enum rsc_role_e next_role
GList * location_constraints
const pcmk_node_t * pending_node
const pcmk_node_t * lock_node
GHashTable * allowed_nodes
Stop on all, start on desired.
guint remote_reconnect_ms
pcmk_scheduler_t * scheduler
enum rsc_role_e orig_role
pcmk_resource_t * launcher
GList * this_with_colocations
Unknown resource variant.
Stop on all and leave stopped.
GList * dangling_migration_sources
GHashTable * probed_nodes
pcmk_node_t *(* active_node)(const pcmk_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean)
const pcmk__assignment_methods_t * cmds
pcmk_node_t * partial_migration_target