pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Enumerations
roles.h File Reference

Scheduler API for resource roles. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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
}
 

Detailed Description

Scheduler API for resource roles.

Definition in file roles.h.

Enumeration Type Documentation

◆ rsc_role_e

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 
Deprecated:
Use pcmk_role_unknown instead
RSC_ROLE_STOPPED 
Deprecated:
Use pcmk_role_stopped instead
RSC_ROLE_STARTED 
Deprecated:
Use pcmk_role_started instead
RSC_ROLE_UNPROMOTED 
Deprecated:
Use pcmk_role_unpromoted instead
RSC_ROLE_SLAVE 
Deprecated:
Use pcmk_role_unpromoted instead
RSC_ROLE_PROMOTED 
Deprecated:
Use pcmk_role_promoted instead
RSC_ROLE_MASTER 
Deprecated:
Use pcmk_role_promoted instead

Definition at line 27 of file roles.h.