pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
Scheduler API for resources. More...
#include <stdbool.h>
#include <sys/types.h>
#include <libxml/tree.h>
#include <glib.h>
#include <crm/common/roles.h>
#include <crm/common/scheduler_types.h>
Go to the source code of this file.
Data Structures | |
struct | resource_object_functions_s |
struct | pe_resource_s |
Typedefs | |
typedef struct resource_alloc_functions_s | pcmk_assignment_methods_t |
typedef struct resource_object_functions_s | pcmk_rsc_methods_t |
Functions | |
const char * | pcmk_resource_id (const pcmk_resource_t *rsc) |
bool | pcmk_resource_is_managed (const pcmk_resource_t *rsc) |
Scheduler API for resources.
Definition in file resources.h.
typedef struct resource_alloc_functions_s pcmk_assignment_methods_t |
Definition at line 249 of file resources.h.
typedef struct resource_object_functions_s pcmk_rsc_methods_t |
enum pcmk_rsc_flags |
Definition at line 80 of file resources.h.
enum pe_find |
Search options for resources (exact resource ID always matches)
Enumerator | |
---|---|
pcmk_rsc_match_history | Also match clone instance ID from resource history. |
pcmk_rsc_match_anon_basename | Also match anonymous clone instances by base name. |
pcmk_rsc_match_clone_only | Match only clones and their instances, by either clone or instance ID. |
pcmk_rsc_match_current_node | If matching by node, compare current node instead of assigned node. |
pe_find_inactive |
|
pcmk_rsc_match_basename | Match clone instances (even unique) by base name as well as exact ID. |
pe_find_renamed |
|
pe_find_anon |
|
pe_find_clone |
|
pe_find_current |
|
pe_find_any |
|
Definition at line 183 of file resources.h.
enum pe_obj_types |
Enumerator | |
---|---|
pcmk_rsc_variant_unknown | |
pcmk_rsc_variant_primitive | |
pcmk_rsc_variant_group | |
pcmk_rsc_variant_clone | |
pcmk_rsc_variant_bundle | |
pe_unknown | |
pe_native | |
pe_group | |
pe_clone | |
pe_container |
Definition at line 34 of file resources.h.
enum pe_print_options |
Definition at line 227 of file resources.h.
enum pe_restart |
Enumerator | |
---|---|
pe_restart_restart | |
pe_restart_ignore |
Definition at line 222 of file resources.h.
enum rsc_recovery_type |
Definition at line 65 of file resources.h.
Enumerator | |
---|---|
pcmk_requires_nothing | |
pcmk_requires_quorum | |
pcmk_requires_fencing | |
rsc_req_nothing | |
rsc_req_quorum | |
rsc_req_stonith |
Definition at line 52 of file resources.h.
const char* pcmk_resource_id | ( | const pcmk_resource_t * | rsc | ) |
Definition at line 27 of file resources.c.
bool pcmk_resource_is_managed | ( | const pcmk_resource_t * | rsc | ) |
Definition at line 41 of file resources.c.