pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Data Structures | Macros | Enumerations | Functions
pcmki_transition.h File Reference
#include <glib.h>
#include <crm/crm.h>
#include <crm/common/xml.h>
#include <crm/lrmd_events.h>
Include dependency graph for pcmki_transition.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk__graph_synapse_t
 
struct  pcmk__graph_action_t
 
struct  pcmk__graph_t
 
struct  pcmk__graph_functions_t
 

Macros

#define pcmk__set_synapse_flags(synapse, flags_to_set)
 
#define pcmk__clear_synapse_flags(synapse, flags_to_clear)
 
#define pcmk__set_graph_action_flags(action, flags_to_set)
 
#define pcmk__clear_graph_action_flags(action, flags_to_clear)
 

Enumerations

enum  pcmk__graph_action_type { pcmk__pseudo_graph_action, pcmk__rsc_graph_action, pcmk__cluster_graph_action }
 
enum  pcmk__synapse_flags { pcmk__synapse_ready = (1 << 0), pcmk__synapse_failed = (1 << 1), pcmk__synapse_executed = (1 << 2), pcmk__synapse_confirmed = (1 << 3) }
 
enum  pcmk__graph_action_flags {
  pcmk__graph_action_sent_update = (1 << 0), pcmk__graph_action_executed = (1 << 1), pcmk__graph_action_confirmed = (1 << 2), pcmk__graph_action_failed = (1 << 3),
  pcmk__graph_action_can_fail = (1 << 4)
}
 
enum  pcmk__graph_next { pcmk__graph_done, pcmk__graph_wait, pcmk__graph_restart, pcmk__graph_shutdown }
 
enum  pcmk__graph_status { pcmk__graph_active, pcmk__graph_pending, pcmk__graph_complete, pcmk__graph_terminated }
 

Functions

void pcmk__set_graph_functions (pcmk__graph_functions_t *fns)
 
pcmk__graph_tpcmk__unpack_graph (const xmlNode *xml_graph, const char *reference)
 
enum pcmk__graph_status pcmk__execute_graph (pcmk__graph_t *graph)
 
void pcmk__update_graph (pcmk__graph_t *graph, const pcmk__graph_action_t *action)
 
void pcmk__free_graph (pcmk__graph_t *graph)
 
const char * pcmk__graph_status2text (enum pcmk__graph_status state)
 
void pcmk__log_graph (unsigned int log_level, pcmk__graph_t *graph)
 
void pcmk__log_graph_action (int log_level, pcmk__graph_action_t *action)
 
void pcmk__log_transition_summary (const char *filename)
 
lrmd_event_data_tpcmk__event_from_graph_action (const xmlNode *resource, const pcmk__graph_action_t *action, int status, int rc, const char *exit_reason)
 

Macro Definition Documentation

◆ pcmk__clear_graph_action_flags

#define pcmk__clear_graph_action_flags (   action,
  flags_to_clear 
)
Value:
do { \
(action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \
"Action", "action", \
(action)->flags, (flags_to_clear), #flags_to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:215

Definition at line 89 of file pcmki_transition.h.

◆ pcmk__clear_synapse_flags

#define pcmk__clear_synapse_flags (   synapse,
  flags_to_clear 
)
Value:
do { \
(synapse)->flags = pcmk__clear_flags_as(__func__, __LINE__, \
"Synapse", "synapse", \
(synapse)->flags, (flags_to_clear), #flags_to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
uint64_t flags
Definition: remote.c:215

Definition at line 52 of file pcmki_transition.h.

◆ pcmk__set_graph_action_flags

#define pcmk__set_graph_action_flags (   action,
  flags_to_set 
)
Value:
do { \
(action)->flags = pcmk__set_flags_as(__func__, __LINE__, \
"Action", "action", \
(action)->flags, (flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:215

Definition at line 82 of file pcmki_transition.h.

◆ pcmk__set_synapse_flags

#define pcmk__set_synapse_flags (   synapse,
  flags_to_set 
)
Value:
do { \
(synapse)->flags = pcmk__set_flags_as(__func__, __LINE__, \
"Synapse", "synapse", \
(synapse)->flags, (flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
uint64_t flags
Definition: remote.c:215

Definition at line 45 of file pcmki_transition.h.

Enumeration Type Documentation

◆ pcmk__graph_action_flags

Enumerator
pcmk__graph_action_sent_update 
pcmk__graph_action_executed 
pcmk__graph_action_confirmed 
pcmk__graph_action_failed 
pcmk__graph_action_can_fail 

Definition at line 59 of file pcmki_transition.h.

◆ pcmk__graph_action_type

Enumerator
pcmk__pseudo_graph_action 
pcmk__rsc_graph_action 
pcmk__cluster_graph_action 

Definition at line 22 of file pcmki_transition.h.

◆ pcmk__graph_next

Enumerator
pcmk__graph_done 
pcmk__graph_wait 
pcmk__graph_restart 
pcmk__graph_shutdown 

Definition at line 97 of file pcmki_transition.h.

◆ pcmk__graph_status

Enumerator
pcmk__graph_active 
pcmk__graph_pending 
pcmk__graph_complete 
pcmk__graph_terminated 

Definition at line 150 of file pcmki_transition.h.

◆ pcmk__synapse_flags

Enumerator
pcmk__synapse_ready 
pcmk__synapse_failed 
pcmk__synapse_executed 
pcmk__synapse_confirmed 

Definition at line 28 of file pcmki_transition.h.

Function Documentation

◆ pcmk__event_from_graph_action()

lrmd_event_data_t* pcmk__event_from_graph_action ( const xmlNode *  resource,
const pcmk__graph_action_t action,
int  status,
int  rc,
const char *  exit_reason 
)

Definition at line 845 of file pcmk_graph_consumer.c.

◆ pcmk__execute_graph()

enum pcmk__graph_status pcmk__execute_graph ( pcmk__graph_t graph)

Definition at line 419 of file pcmk_graph_consumer.c.

◆ pcmk__free_graph()

void pcmk__free_graph ( pcmk__graph_t graph)

Definition at line 71 of file pcmk_graph_consumer.c.

◆ pcmk__graph_status2text()

const char* pcmk__graph_status2text ( enum pcmk__graph_status  state)

Definition at line 25 of file pcmk_graph_logging.c.

◆ pcmk__log_graph()

void pcmk__log_graph ( unsigned int  log_level,
pcmk__graph_t graph 
)

Definition at line 213 of file pcmk_graph_logging.c.

◆ pcmk__log_graph_action()

void pcmk__log_graph_action ( int  log_level,
pcmk__graph_action_t action 
)

Definition at line 207 of file pcmk_graph_logging.c.

◆ pcmk__log_transition_summary()

void pcmk__log_transition_summary ( const char *  filename)

Definition at line 944 of file pcmk_graph_producer.c.

◆ pcmk__set_graph_functions()

void pcmk__set_graph_functions ( pcmk__graph_functions_t fns)

Definition at line 213 of file pcmk_graph_consumer.c.

◆ pcmk__unpack_graph()

pcmk__graph_t* pcmk__unpack_graph ( const xmlNode *  xml_graph,
const char *  reference 
)

Definition at line 742 of file pcmk_graph_consumer.c.

◆ pcmk__update_graph()

void pcmk__update_graph ( pcmk__graph_t graph,
const pcmk__graph_action_t action 
)

Definition at line 176 of file pcmk_graph_consumer.c.