24 # include <sys/types.h>
25 # include <libxml/tree.h>
94 # define pe_flag_have_quorum 0x00000001ULL
95 # define pe_flag_symmetric_cluster 0x00000002ULL
96 # define pe_flag_maintenance_mode 0x00000008ULL
98 # define pe_flag_stonith_enabled 0x00000010ULL
99 # define pe_flag_have_stonith_resource 0x00000020ULL
100 # define pe_flag_enable_unfencing 0x00000040ULL
101 # define pe_flag_concurrent_fencing 0x00000080ULL
103 # define pe_flag_stop_rsc_orphans 0x00000100ULL
104 # define pe_flag_stop_action_orphans 0x00000200ULL
105 # define pe_flag_stop_everything 0x00000400ULL
107 # define pe_flag_start_failure_fatal 0x00001000ULL
110 # define pe_flag_remove_after_stop 0x00002000ULL
112 # define pe_flag_startup_fencing 0x00004000ULL
113 # define pe_flag_shutdown_lock 0x00008000ULL
115 # define pe_flag_startup_probes 0x00010000ULL
116 # define pe_flag_have_status 0x00020000ULL
117 # define pe_flag_have_remote_nodes 0x00040000ULL
119 # define pe_flag_quick_location 0x00100000ULL
120 # define pe_flag_sanitized 0x00200000ULL
123 # define pe_flag_stdout 0x00400000ULL
126 # define pe_flag_no_counts 0x00800000ULL
131 # define pe_flag_no_compat 0x01000000ULL
133 # define pe_flag_show_scores 0x02000000ULL
134 # define pe_flag_show_utilization 0x04000000ULL
248 # define pe_rsc_orphan 0x00000001ULL
249 # define pe_rsc_managed 0x00000002ULL
250 # define pe_rsc_block 0x00000004ULL
251 # define pe_rsc_orphan_container_filler 0x00000008ULL
253 # define pe_rsc_notify 0x00000010ULL
254 # define pe_rsc_unique 0x00000020ULL
255 # define pe_rsc_fence_device 0x00000040ULL
256 # define pe_rsc_promotable 0x00000080ULL
258 # define pe_rsc_provisional 0x00000100ULL
259 # define pe_rsc_allocating 0x00000200ULL
260 # define pe_rsc_merging 0x00000400ULL
262 # define pe_rsc_stop 0x00001000ULL
263 # define pe_rsc_reload 0x00002000ULL
264 # define pe_rsc_allow_remote_remotes 0x00004000ULL
265 # define pe_rsc_critical 0x00008000ULL
267 # define pe_rsc_failed 0x00010000ULL
268 # define pe_rsc_runnable 0x00040000ULL
269 # define pe_rsc_start_pending 0x00080000ULL
271 # define pe_rsc_starting 0x00100000ULL
272 # define pe_rsc_stopping 0x00200000ULL
273 # define pe_rsc_allow_migrate 0x00800000ULL
275 # define pe_rsc_failure_ignored 0x01000000ULL
276 # define pe_rsc_maintenance 0x04000000ULL
277 # define pe_rsc_is_container 0x08000000ULL
279 # define pe_rsc_needs_quorum 0x10000000ULL
280 # define pe_rsc_needs_fencing 0x20000000ULL
281 # define pe_rsc_needs_unfencing 0x40000000ULL
392 #if ENABLE_VERSIONED_ATTRS
393 xmlNode *versioned_parameters;
397 #if ENABLE_VERSIONED_ATTRS
399 typedef struct pe_rsc_action_details_s {
400 xmlNode *versioned_parameters;
401 xmlNode *versioned_meta;
402 } pe_rsc_action_details_t;
523 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
536 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
544 #endif // PE_TYPES__H
struct pe_ticket_s pe_ticket_t
enum rsc_start_requirement needs
enum pe_quorum_policy no_quorum_policy
enum rsc_role_e(* state)(const pe_resource_t *, gboolean)
pe_resource_t * container
pe_node_t * partial_migration_source
struct crm_time_s crm_time_t
resource_alloc_functions_t * cmds
int priority_fencing_delay
Internal tracking for transition graph creation.
Internal tracking for transition graph creation.
enum rsc_role_e next_role
enum action_fail_response on_fail
gboolean exclusive_discover
struct resource_object_functions_s resource_object_functions_t
pe_resource_t * remote_rsc
match resource not running anywhere
resource_object_functions_t * fns
Deprecated Pacemaker scheduler API.
int order_id
Deprecated (will be removed in a future release)
pe_node_t * partial_migration_target
gboolean remote_was_fenced
gboolean remote_requires_reset
void(* count)(pe_resource_t *)
gboolean remote_maintenance
pe_link_state
Internal tracking for transition graph creation.
GList * ticket_constraints
GList * dangling_migrations
guint remote_reconnect_ms
pe_find
Determine behavior of pe_find_resource_with_flags()
match only clone instances
const char * stonith_action
struct pe_node_shared_s * details
enum rsc_recovery_type recovery_type
Internal state tracking when creating graph.
enum pe_restart restart_type
match base name of any clone instance
enum pe_obj_types variant
const char * placement_strategy
void(* print)(pe_resource_t *, const char *, long, void *)
match resource ID or LRM history ID
gboolean rsc_discovery_enabled
gboolean(* is_filtered)(pe_resource_t *, GList *, gboolean)
GList * ordering_constraints
GList * colocation_constraints
void(* free)(pe_resource_t *)
enum rsc_role_e fail_role
rsc_role_e
Possible roles that a resource can be in.
enum pe_action_flags flags
GHashTable * digest_cache
cache of calculated resource digests
GList * placement_constraints
pe_working_set_t * cluster
struct pe_action_wrapper_s pe_action_wrapper_t
GHashTable * parameter_cache
gboolean(* active)(pe_resource_t *, gboolean)
gboolean(* unpack)(pe_resource_t *, pe_working_set_t *)
GHashTable * template_rsc_sets
match resource active on specified node
int required_runnable_before
GHashTable * allowed_nodes
match base name of anonymous clone instances