pacemaker
2.1.7-2.1.7
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
include
crm
common
roles.h
Go to the documentation of this file.
1
/*
2
* Copyright 2004-2023 the Pacemaker project contributors
3
*
4
* The version control history for this file may have further details.
5
*
6
* This source code is licensed under the GNU Lesser General Public License
7
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8
*/
9
10
#ifndef PCMK__CRM_COMMON_ROLES__H
11
# define PCMK__CRM_COMMON_ROLES__H
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
27
enum
rsc_role_e
{
28
pcmk_role_unknown
= 0,
29
pcmk_role_stopped
= 1,
30
pcmk_role_started
= 2,
31
pcmk_role_unpromoted
= 3,
32
pcmk_role_promoted
= 4,
33
34
#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
36
RSC_ROLE_UNKNOWN
=
pcmk_role_unknown
,
37
39
RSC_ROLE_STOPPED
=
pcmk_role_stopped
,
40
42
RSC_ROLE_STARTED
=
pcmk_role_started
,
43
45
RSC_ROLE_UNPROMOTED
=
pcmk_role_unpromoted
,
46
48
RSC_ROLE_SLAVE
=
pcmk_role_unpromoted
,
49
51
RSC_ROLE_PROMOTED
=
pcmk_role_promoted
,
52
54
RSC_ROLE_MASTER
=
pcmk_role_promoted
,
55
#endif
56
};
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
// PCMK__CRM_COMMON_ROLES__H
rsc_role_e
rsc_role_e
Definition
roles.h:27
RSC_ROLE_MASTER
@ RSC_ROLE_MASTER
Definition
roles.h:54
pcmk_role_started
@ pcmk_role_started
Started.
Definition
roles.h:30
RSC_ROLE_STARTED
@ RSC_ROLE_STARTED
Definition
roles.h:42
RSC_ROLE_STOPPED
@ RSC_ROLE_STOPPED
Definition
roles.h:39
pcmk_role_unknown
@ pcmk_role_unknown
Resource role is unknown.
Definition
roles.h:28
pcmk_role_unpromoted
@ pcmk_role_unpromoted
Unpromoted.
Definition
roles.h:31
RSC_ROLE_PROMOTED
@ RSC_ROLE_PROMOTED
Definition
roles.h:51
pcmk_role_promoted
@ pcmk_role_promoted
Promoted.
Definition
roles.h:32
RSC_ROLE_UNKNOWN
@ RSC_ROLE_UNKNOWN
Definition
roles.h:36
RSC_ROLE_UNPROMOTED
@ RSC_ROLE_UNPROMOTED
Definition
roles.h:45
RSC_ROLE_SLAVE
@ RSC_ROLE_SLAVE
Definition
roles.h:48
pcmk_role_stopped
@ pcmk_role_stopped
Stopped.
Definition
roles.h:29
Generated on Sun Mar 31 2024 20:36:16 for pacemaker by
1.9.8