10#ifndef PCMK__CRM_PENGINE_PE_TYPES__H
11# define PCMK__CRM_PENGINE_PE_TYPES__H
15# include <sys/types.h>
16# include <libxml/tree.h>
95# define pe_flag_have_quorum 0x00000001ULL
96# define pe_flag_symmetric_cluster 0x00000002ULL
97# define pe_flag_maintenance_mode 0x00000008ULL
99# define pe_flag_stonith_enabled 0x00000010ULL
100# define pe_flag_have_stonith_resource 0x00000020ULL
101# define pe_flag_enable_unfencing 0x00000040ULL
102# define pe_flag_concurrent_fencing 0x00000080ULL
104# define pe_flag_stop_rsc_orphans 0x00000100ULL
105# define pe_flag_stop_action_orphans 0x00000200ULL
106# define pe_flag_stop_everything 0x00000400ULL
108# define pe_flag_start_failure_fatal 0x00001000ULL
111# define pe_flag_remove_after_stop 0x00002000ULL
113# define pe_flag_startup_fencing 0x00004000ULL
114# define pe_flag_shutdown_lock 0x00008000ULL
116# define pe_flag_startup_probes 0x00010000ULL
117# define pe_flag_have_status 0x00020000ULL
118# define pe_flag_have_remote_nodes 0x00040000ULL
120# define pe_flag_quick_location 0x00100000ULL
121# define pe_flag_sanitized 0x00200000ULL
124# define pe_flag_stdout 0x00400000ULL
127# define pe_flag_no_counts 0x00800000ULL
132# define pe_flag_no_compat 0x01000000ULL
134# define pe_flag_show_scores 0x02000000ULL
135# define pe_flag_show_utilization 0x04000000ULL
141# define pe_flag_check_config 0x08000000ULL
256# define pe_rsc_orphan 0x00000001ULL
257# define pe_rsc_managed 0x00000002ULL
258# define pe_rsc_block 0x00000004ULL
259# define pe_rsc_orphan_container_filler 0x00000008ULL
261# define pe_rsc_notify 0x00000010ULL
262# define pe_rsc_unique 0x00000020ULL
263# define pe_rsc_fence_device 0x00000040ULL
264# define pe_rsc_promotable 0x00000080ULL
266# define pe_rsc_provisional 0x00000100ULL
267# define pe_rsc_allocating 0x00000200ULL
268# define pe_rsc_merging 0x00000400ULL
269# define pe_rsc_restarting 0x00000800ULL
271# define pe_rsc_stop 0x00001000ULL
272# define pe_rsc_reload 0x00002000ULL
273# define pe_rsc_allow_remote_remotes 0x00004000ULL
274# define pe_rsc_critical 0x00008000ULL
276# define pe_rsc_failed 0x00010000ULL
277# define pe_rsc_runnable 0x00040000ULL
278# define pe_rsc_start_pending 0x00080000ULL
281# define pe_rsc_starting 0x00100000ULL
284# define pe_rsc_stopping 0x00200000ULL
286# define pe_rsc_stop_unexpected 0x00400000ULL
287# define pe_rsc_allow_migrate 0x00800000ULL
289# define pe_rsc_failure_ignored 0x01000000ULL
290# define pe_rsc_maintenance 0x04000000ULL
291# define pe_rsc_is_container 0x08000000ULL
293# define pe_rsc_needs_quorum 0x10000000ULL
294# define pe_rsc_needs_fencing 0x20000000ULL
295# define pe_rsc_needs_unfencing 0x40000000ULL
310#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
520#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
533#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
rsc_role_e
Possible roles that a resource can be in.
struct crm_time_s crm_time_t
@ pe_order_implies_first_printed
@ pe_order_implies_first_master
@ pe_order_anti_colocation
@ pe_order_then_cancels_first
@ pe_order_serialize_only
@ pe_order_implies_then_on_node
@ pe_order_implies_first_migratable
@ pe_order_implies_then_printed
@ pe_order_promoted_implies_first
@ pe_order_apply_first_non_migratable
pe_link_state
Internal tracking for transition graph creation.
@ pe_link_dumped
Internal tracking for transition graph creation.
@ pe_link_dup
Internal tracking for transition graph creation.
@ pe_action_implied_by_stonith
@ pe_action_have_node_attrs
@ pe_action_dc
Internal state tracking when creating graph.
@ pe_action_migrate_runnable
pe_find
Determine behavior of pe_find_resource_with_flags()
@ pe_find_inactive
match resource not running anywhere
@ pe_find_any
match base name of any clone instance
@ pe_find_clone
match only clone instances
@ pe_find_renamed
match resource ID or LRM history ID
@ pe_find_current
match resource active on specified node
@ pe_find_anon
match base name of anonymous clone instances
struct pe_ticket_s pe_ticket_t
struct resource_object_functions_s resource_object_functions_t
struct pe_action_wrapper_s pe_action_wrapper_t
Deprecated Pacemaker scheduler API.
enum rsc_role_e fail_role
enum rsc_start_requirement needs
enum action_fail_response on_fail
enum pe_action_flags flags
int required_runnable_before
struct pe_node_shared_s * details
GHashTable * digest_cache
cache of calculated resource digests
pe_working_set_t * data_set
Cluster that this node is part of.
pe_resource_t * remote_rsc
gboolean remote_maintenance
gboolean remote_requires_reset
gboolean rsc_discovery_enabled
gboolean remote_was_fenced
enum pe_obj_types variant
gboolean exclusive_discover
enum pe_restart restart_type
pe_working_set_t * cluster
pe_resource_t * container
GHashTable * allowed_nodes
GList * dangling_migrations
GHashTable * parameter_cache
pe_node_t * partial_migration_source
guint remote_reconnect_ms
enum rsc_recovery_type recovery_type
pe_node_t * partial_migration_target
resource_alloc_functions_t * cmds
enum rsc_role_e next_role
resource_object_functions_t * fns
GList * colocation_constraints
GList * ticket_constraints
const char * stonith_action
const char * placement_strategy
GHashTable * template_rsc_sets
enum pe_quorum_policy no_quorum_policy
GList * placement_constraints
GList * ordering_constraints
int priority_fencing_delay
int order_id
Deprecated (will be removed in a future release)
gboolean(* is_filtered)(pe_resource_t *, GList *, gboolean)
gboolean(* active)(pe_resource_t *, gboolean)
enum rsc_role_e(* state)(const pe_resource_t *, gboolean)
void(* free)(pe_resource_t *)
gboolean(* unpack)(pe_resource_t *, pe_working_set_t *)
void(* print)(pe_resource_t *, const char *, long, void *)
void(* count)(pe_resource_t *)