pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
Scheduler API for resource roles. More...
Go to the source code of this file.
Macros | |
#define | PCMK_ROLE_STOPPED "Stopped" |
#define | PCMK_ROLE_STARTED "Started" |
#define | PCMK_ROLE_UNPROMOTED "Unpromoted" |
#define | PCMK_ROLE_PROMOTED "Promoted" |
Enumerations | |
enum | rsc_role_e { pcmk_role_unknown = 0, pcmk_role_stopped = 1, pcmk_role_started = 2, pcmk_role_unpromoted = 3, pcmk_role_promoted = 4, RSC_ROLE_UNKNOWN = pcmk_role_unknown, RSC_ROLE_STOPPED = pcmk_role_stopped, RSC_ROLE_STARTED = pcmk_role_started, RSC_ROLE_UNPROMOTED = pcmk_role_unpromoted, RSC_ROLE_SLAVE = pcmk_role_unpromoted, RSC_ROLE_PROMOTED = pcmk_role_promoted, RSC_ROLE_MASTER = pcmk_role_promoted } |
Functions | |
const char * | pcmk_role_text (enum rsc_role_e role) |
Get readable description of a resource role. More... | |
enum rsc_role_e | pcmk_parse_role (const char *role) |
Parse a resource role from a string role specification. More... | |
Scheduler API for resource roles.
Definition in file roles.h.
enum rsc_role_e |
Possible roles that a resource can be in (order matters; values can be compared with less than and greater than)
Enumerator | |
---|---|
pcmk_role_unknown | Resource role is unknown. |
pcmk_role_stopped | Stopped. |
pcmk_role_started | Started. |
pcmk_role_unpromoted | Unpromoted. |
pcmk_role_promoted | Promoted. |
RSC_ROLE_UNKNOWN |
|
RSC_ROLE_STOPPED |
|
RSC_ROLE_STARTED |
|
RSC_ROLE_UNPROMOTED |
|
RSC_ROLE_SLAVE |
|
RSC_ROLE_PROMOTED |
|
RSC_ROLE_MASTER |
|
enum rsc_role_e pcmk_parse_role | ( | const char * | role | ) |
const char* pcmk_role_text | ( | enum rsc_role_e | role | ) |