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 | Macros | Typedefs | Enumerations | Functions | Variables
pcmki_scheduler.h File Reference
#include <glib.h>
#include <crm/crm.h>
#include <crm/common/iso8601.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/common.h>
#include <crm/pengine/status.h>
#include <crm/pengine/complex.h>
Include dependency graph for pcmki_scheduler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk__colocation_t
 
struct  rsc_ticket_s
 

Macros

#define order_start_start(rsc1, rsc2, type)   new_rsc_order(rsc1, CRMD_ACTION_START, rsc2, CRMD_ACTION_START, type, data_set)
 
#define order_stop_stop(rsc1, rsc2, type)   new_rsc_order(rsc1, CRMD_ACTION_STOP, rsc2, CRMD_ACTION_STOP, type, data_set)
 

Typedefs

typedef struct rsc_ticket_s rsc_ticket_t
 
typedef struct lrm_agent_s lrm_agent_t
 

Enumerations

enum  pe_stop_fail { pesf_block, pesf_stonith, pesf_ignore }
 
enum  pe_weights {
  pe_weights_none = 0x0, pe_weights_init = 0x1, pe_weights_forward = 0x4, pe_weights_positive = 0x8,
  pe_weights_rollback = 0x10
}
 
enum  loss_ticket_policy_e { loss_ticket_stop, loss_ticket_demote, loss_ticket_fence, loss_ticket_freeze }
 

Functions

gboolean stage0 (pe_working_set_t *data_set)
 
gboolean probe_resources (pe_working_set_t *data_set)
 
gboolean stage2 (pe_working_set_t *data_set)
 
gboolean stage3 (pe_working_set_t *data_set)
 
gboolean stage4 (pe_working_set_t *data_set)
 
gboolean stage5 (pe_working_set_t *data_set)
 
gboolean stage6 (pe_working_set_t *data_set)
 
gboolean stage7 (pe_working_set_t *data_set)
 
gboolean stage8 (pe_working_set_t *data_set)
 
gboolean summary (GList *resources)
 
gboolean unpack_constraints (xmlNode *xml_constraints, pe_working_set_t *data_set)
 
gboolean shutdown_constraints (pe_node_t *node, pe_action_t *shutdown_op, pe_working_set_t *data_set)
 
void pcmk__order_vs_fence (pe_action_t *stonith_op, pe_working_set_t *data_set)
 
int custom_action_order (pe_resource_t *lh_rsc, char *lh_task, pe_action_t *lh_action, pe_resource_t *rh_rsc, char *rh_task, pe_action_t *rh_action, enum pe_ordering type, pe_working_set_t *data_set)
 
int new_rsc_order (pe_resource_t *lh_rsc, const char *lh_task, pe_resource_t *rh_rsc, const char *rh_task, enum pe_ordering type, pe_working_set_t *data_set)
 
void graph_element_from_action (pe_action_t *action, pe_working_set_t *data_set)
 
void add_maintenance_update (pe_working_set_t *data_set)
 
xmlNode * pcmk__schedule_actions (pe_working_set_t *data_set, xmlNode *xml_input, crm_time_t *now)
 
bool pcmk__ordering_is_invalid (pe_action_t *action, pe_action_wrapper_t *input)
 

Variables

const char * transition_idle_timeout
 

Macro Definition Documentation

#define order_start_start (   rsc1,
  rsc2,
  type 
)    new_rsc_order(rsc1, CRMD_ACTION_START, rsc2, CRMD_ACTION_START, type, data_set)

Definition at line 95 of file pcmki_scheduler.h.

#define order_stop_stop (   rsc1,
  rsc2,
  type 
)    new_rsc_order(rsc1, CRMD_ACTION_STOP, rsc2, CRMD_ACTION_STOP, type, data_set)

Definition at line 97 of file pcmki_scheduler.h.

Typedef Documentation

typedef struct lrm_agent_s lrm_agent_t

Definition at line 14 of file pcmki_scheduler.h.

typedef struct rsc_ticket_s rsc_ticket_t

Definition at line 13 of file pcmki_scheduler.h.

Enumeration Type Documentation

Enumerator
loss_ticket_stop 
loss_ticket_demote 
loss_ticket_fence 
loss_ticket_freeze 

Definition at line 52 of file pcmki_scheduler.h.

Enumerator
pesf_block 
pesf_stonith 
pesf_ignore 

Definition at line 25 of file pcmki_scheduler.h.

enum pe_weights
Enumerator
pe_weights_none 
pe_weights_init 
pe_weights_forward 
pe_weights_positive 
pe_weights_rollback 

Definition at line 31 of file pcmki_scheduler.h.

Function Documentation

void add_maintenance_update ( pe_working_set_t data_set)

Definition at line 952 of file pcmk_sched_graph.c.

int custom_action_order ( pe_resource_t lh_rsc,
char *  lh_task,
pe_action_t lh_action,
pe_resource_t rh_rsc,
char *  rh_task,
pe_action_t rh_action,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 1586 of file pcmk_sched_constraints.c.

void graph_element_from_action ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 1848 of file pcmk_sched_graph.c.

int new_rsc_order ( pe_resource_t lh_rsc,
const char *  lh_task,
pe_resource_t rh_rsc,
const char *  rh_task,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 1408 of file pcmk_sched_constraints.c.

void pcmk__order_vs_fence ( pe_action_t stonith_op,
pe_working_set_t data_set 
)

Definition at line 773 of file pcmk_sched_graph.c.

bool pcmk__ordering_is_invalid ( pe_action_t action,
pe_action_wrapper_t input 
)

Definition at line 1763 of file pcmk_sched_graph.c.

xmlNode* pcmk__schedule_actions ( pe_working_set_t data_set,
xmlNode *  xml_input,
crm_time_t now 
)

Definition at line 62 of file pcmk_sched_messages.c.

gboolean probe_resources ( pe_working_set_t data_set)

Definition at line 915 of file pcmk_sched_allocate.c.

gboolean shutdown_constraints ( pe_node_t node,
pe_action_t shutdown_op,
pe_working_set_t data_set 
)

Definition at line 718 of file pcmk_sched_graph.c.

gboolean stage0 ( pe_working_set_t data_set)

Definition at line 891 of file pcmk_sched_allocate.c.

gboolean stage2 ( pe_working_set_t data_set)

Definition at line 1084 of file pcmk_sched_allocate.c.

gboolean stage3 ( pe_working_set_t data_set)

Definition at line 1129 of file pcmk_sched_allocate.c.

gboolean stage4 ( pe_working_set_t data_set)

Definition at line 1147 of file pcmk_sched_allocate.c.

gboolean stage5 ( pe_working_set_t data_set)

Definition at line 1383 of file pcmk_sched_allocate.c.

gboolean stage6 ( pe_working_set_t data_set)

Definition at line 1617 of file pcmk_sched_allocate.c.

gboolean stage7 ( pe_working_set_t data_set)

Definition at line 2811 of file pcmk_sched_allocate.c.

gboolean stage8 ( pe_working_set_t data_set)

Definition at line 2948 of file pcmk_sched_allocate.c.

gboolean summary ( GList *  resources)
gboolean unpack_constraints ( xmlNode *  xml_constraints,
pe_working_set_t data_set 
)

Definition at line 72 of file pcmk_sched_constraints.c.

Variable Documentation

const char* transition_idle_timeout