10 #ifndef PCMK__CRM_COMMON_RESOURCES__H 11 #define PCMK__CRM_COMMON_RESOURCES__H 14 #include <sys/types.h> 15 #include <libxml/tree.h> 42 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 57 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 71 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 202 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 359 gboolean check_parent);
374 unsigned int *count_all,
375 unsigned int *count_clean);
502 #endif // PCMK__CRM_COMMON_RESOURCES__H pcmk_assignment_methods_t * cmds
pcmk_scheduler_t * cluster
Also match anonymous clone instances by base name.
pcmk_node_t * partial_migration_target
Type aliases needed to define scheduler objects.
pe_find
Search options for resources (exact resource ID always matches)
Match only clones and their instances, by either clone or instance ID.
enum rsc_role_e(* state)(const pcmk_resource_t *rsc, gboolean current)
enum rsc_role_e next_role
gboolean exclusive_discover
bool pcmk_resource_is_managed(const pcmk_resource_t *rsc)
void(* print)(pcmk_resource_t *rsc, const char *pre_text, long options, void *print_data)
pcmk_resource_t * container
Also match clone instance ID from resource history.
GList * dangling_migrations
guint remote_reconnect_ms
void(* free)(pcmk_resource_t *rsc)
gboolean(* unpack)(pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
unsigned int(* max_per_node)(const pcmk_resource_t *rsc)
Scheduler API for resource roles.
struct resource_object_functions_s pcmk_rsc_methods_t
enum rsc_recovery_type recovery_type
Match clone instances (even unique) by base name as well as exact ID.
enum pe_restart restart_type
enum pe_obj_types variant
const char * pcmk_resource_id(const pcmk_resource_t *rsc)
gboolean(* active)(pcmk_resource_t *rsc, gboolean all)
pcmk_scheduler_t * scheduler
If matching by node, compare current node instead of assigned node.
pcmk_node_t * allocated_to
gboolean(* is_filtered)(const pcmk_resource_t *rsc, GList *only_rsc, gboolean check_parent)
GHashTable * parameter_cache
pcmk_node_t * pending_node
void(* count)(pcmk_resource_t *rsc)
pcmk_node_t * partial_migration_source
GHashTable * allowed_nodes