pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
transition.h File Reference
#include <crm/crm.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
Include dependency graph for 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  timer_reason { timeout_action, timeout_action_warn, timeout_abort }
 
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 31 of file transition.h.

typedef struct crm_graph_s crm_graph_t

Definition at line 32 of file transition.h.

typedef struct synapse_s synapse_t

Enumeration Type Documentation

Enumerator
action_type_pseudo 
action_type_rsc 
action_type_crm 

Definition at line 25 of file transition.h.

Enumerator
timeout_action 
timeout_action_warn 
timeout_abort 

Definition at line 71 of file transition.h.

Enumerator
tg_done 
tg_stop 
tg_restart 
tg_shutdown 

Definition at line 85 of file transition.h.

Enumerator
transition_active 
transition_pending 
transition_complete 
transition_stopped 
transition_terminated 
transition_action_failed 
transition_failed 

Definition at line 128 of file transition.h.

Function Documentation

const char* actiontype2text ( action_type_e  type)

Definition at line 105 of file utils.c.

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

Definition at line 297 of file unpack.c.

void destroy_graph ( crm_graph_t graph)

Definition at line 280 of file unpack.c.

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

Definition at line 217 of file utils.c.

void print_graph ( unsigned int  log_level,
crm_graph_t graph 
)

Definition at line 223 of file utils.c.

int run_graph ( crm_graph_t graph)

Definition at line 247 of file graph.c.

void set_default_graph_functions ( void  )

Definition at line 64 of file utils.c.

void set_graph_functions ( crm_graph_functions_t fns)

Definition at line 70 of file utils.c.

const char* transition_status ( enum transition_status  state)

Definition at line 83 of file utils.c.

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

Definition at line 172 of file unpack.c.

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

Definition at line 263 of file utils.c.

gboolean update_graph ( crm_graph_t graph,
crm_action_t action 
)

Definition at line 102 of file graph.c.