pacemaker
2.1.8-3980678f03
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <crm/common/xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Go to the source code of this file.
Macros | |
#define | display_role(r) (((r) == pcmk_role_unknown)? "matching" : pcmk_role_text(r)) |
#define | pe__clear_action_summary_flags(flags, action, flag) |
Enumerations | |
enum | instance_state { instance_starting = (1 << 0), instance_stopping = (1 << 1), instance_restarting = (1 << 2), instance_active = (1 << 3), instance_all } |
Functions | |
gint | pcmk__cmp_instance_number (gconstpointer a, gconstpointer b) |
gint | pcmk__cmp_instance (gconstpointer a, gconstpointer b) |
void | pcmk__assign_instances (pcmk_resource_t *collective, GList *instances, int max_total, int max_per_node) |
void | pcmk__create_instance_actions (pcmk_resource_t *collective, GList *instances) |
bool | pcmk__instance_matches (const pcmk_resource_t *instance, const pcmk_node_t *node, enum rsc_role_e role, bool current) |
pcmk_resource_t * | pcmk__find_compatible_instance (const pcmk_resource_t *match_rsc, const pcmk_resource_t *rsc, enum rsc_role_e role, bool current) |
uint32_t | pcmk__instance_update_ordered_actions (pcmk_action_t *first, pcmk_action_t *then, const pcmk_node_t *node, uint32_t flags, uint32_t filter, uint32_t type, pcmk_scheduler_t *scheduler) |
uint32_t | pcmk__collective_action_flags (pcmk_action_t *action, const GList *instances, const pcmk_node_t *node) |
#define display_role | ( | r | ) | (((r) == pcmk_role_unknown)? "matching" : pcmk_role_text(r)) |
Definition at line 1116 of file pcmk_sched_instances.c.
Definition at line 1609 of file pcmk_sched_instances.c.
enum instance_state |
Enumerator | |
---|---|
instance_starting | |
instance_stopping | |
instance_restarting | |
instance_active | |
instance_all |
Definition at line 866 of file pcmk_sched_instances.c.
void pcmk__assign_instances | ( | pcmk_resource_t * | collective, |
GList * | instances, | ||
int | max_total, | ||
int | max_per_node | ||
) |
Definition at line 781 of file pcmk_sched_instances.c.
gint pcmk__cmp_instance | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Definition at line 347 of file pcmk_sched_instances.c.
gint pcmk__cmp_instance_number | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Definition at line 298 of file pcmk_sched_instances.c.
uint32_t pcmk__collective_action_flags | ( | pcmk_action_t * | action, |
const GList * | instances, | ||
const pcmk_node_t * | node | ||
) |
Definition at line 1626 of file pcmk_sched_instances.c.
void pcmk__create_instance_actions | ( | pcmk_resource_t * | collective, |
GList * | instances | ||
) |
Definition at line 975 of file pcmk_sched_instances.c.
pcmk_resource_t* pcmk__find_compatible_instance | ( | const pcmk_resource_t * | match_rsc, |
const pcmk_resource_t * | rsc, | ||
enum rsc_role_e | role, | ||
bool | current | ||
) |
Definition at line 1176 of file pcmk_sched_instances.c.
bool pcmk__instance_matches | ( | const pcmk_resource_t * | instance, |
const pcmk_node_t * | node, | ||
enum rsc_role_e | role, | ||
bool | current | ||
) |
Definition at line 1076 of file pcmk_sched_instances.c.
uint32_t pcmk__instance_update_ordered_actions | ( | pcmk_action_t * | first, |
pcmk_action_t * | then, | ||
const pcmk_node_t * | node, | ||
uint32_t | flags, | ||
uint32_t | filter, | ||
uint32_t | type, | ||
pcmk_scheduler_t * | scheduler | ||
) |
Definition at line 1576 of file pcmk_sched_instances.c.