pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
pcmki_transition.h File Reference
#include <glib.h>
#include <crm/crm.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.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  synapse_s
 
struct  crm_action_s
 
struct  te_timer_s
 
struct  crm_graph_s
 
struct  crm_graph_functions_s
 

Typedefs

typedef struct te_timer_s crm_action_timer_t
 
typedef struct crm_graph_s crm_graph_t
 
typedef struct synapse_s synapse_t
 
typedef struct crm_action_s crm_action_t
 
typedef struct
crm_graph_functions_s 
crm_graph_functions_t
 

Enumerations

enum  action_type_e { action_type_pseudo, action_type_rsc, action_type_crm }
 
enum  transition_action { tg_done, tg_stop, tg_restart, tg_shutdown }
 
enum  transition_status {
  transition_active, transition_pending, transition_complete, transition_stopped,
  transition_terminated, transition_action_failed, transition_failed
}
 

Functions

void set_default_graph_functions (void)
 
void set_graph_functions (crm_graph_functions_t *fns)
 
crm_graph_tunpack_graph (xmlNode *xml_graph, const char *reference)
 
int run_graph (crm_graph_t *graph)
 
gboolean update_graph (crm_graph_t *graph, crm_action_t *action)
 
void destroy_graph (crm_graph_t *graph)
 
const char * transition_status (enum transition_status state)
 
void print_graph (unsigned int log_level, crm_graph_t *graph)
 
void print_action (int log_level, const char *prefix, crm_action_t *action)
 
bool update_abort_priority (crm_graph_t *graph, int priority, enum transition_action action, const char *abort_reason)
 
const char * actiontype2text (action_type_e type)
 
lrmd_event_data_tconvert_graph_action (xmlNode *resource, crm_action_t *action, int status, int rc)
 

Typedef Documentation

typedef struct crm_action_s crm_action_t

Definition at line 28 of file pcmki_transition.h.

typedef struct crm_graph_s crm_graph_t

Definition at line 29 of file pcmki_transition.h.

typedef struct synapse_s synapse_t

Enumeration Type Documentation

Enumerator
action_type_pseudo 
action_type_rsc 
action_type_crm 

Definition at line 22 of file pcmki_transition.h.

Enumerator
tg_done 
tg_stop 
tg_restart 
tg_shutdown 

Definition at line 72 of file pcmki_transition.h.

Enumerator
transition_active 
transition_pending 
transition_complete 
transition_stopped 
transition_terminated 
transition_action_failed 
transition_failed 

Definition at line 114 of file pcmki_transition.h.

Function Documentation

const char* actiontype2text ( action_type_e  type)

Definition at line 95 of file pcmk_trans_utils.c.

lrmd_event_data_t* convert_graph_action ( xmlNode *  resource,
crm_action_t action,
int  status,
int  rc 
)

Definition at line 304 of file pcmk_trans_unpack.c.

void destroy_graph ( crm_graph_t graph)

Definition at line 287 of file pcmk_trans_unpack.c.

void print_action ( int  log_level,
const char *  prefix,
crm_action_t action 
)

Definition at line 232 of file pcmk_trans_utils.c.

void print_graph ( unsigned int  log_level,
crm_graph_t graph 
)

Definition at line 238 of file pcmk_trans_utils.c.

int run_graph ( crm_graph_t graph)

Definition at line 236 of file pcmk_trans_graph.c.

void set_default_graph_functions ( void  )

Definition at line 54 of file pcmk_trans_utils.c.

void set_graph_functions ( crm_graph_functions_t fns)

Definition at line 60 of file pcmk_trans_utils.c.

const char* transition_status ( enum transition_status  state)

Definition at line 73 of file pcmk_trans_utils.c.

crm_graph_t* unpack_graph ( xmlNode *  xml_graph,
const char *  reference 
)

Definition at line 173 of file pcmk_trans_unpack.c.

bool update_abort_priority ( crm_graph_t graph,
int  priority,
enum transition_action  action,
const char *  abort_reason 
)

Definition at line 278 of file pcmk_trans_utils.c.

gboolean update_graph ( crm_graph_t graph,
crm_action_t action 
)

Definition at line 91 of file pcmk_trans_graph.c.