pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Go to the source code of this file.
Macros | |
#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) |
Definition at line 1601 of file pcmk_sched_instances.c.
enum instance_state |
Enumerator | |
---|---|
instance_starting | |
instance_stopping | |
instance_restarting | |
instance_active | |
instance_all |
Definition at line 864 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 779 of file pcmk_sched_instances.c.
gint pcmk__cmp_instance | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Definition at line 346 of file pcmk_sched_instances.c.
gint pcmk__cmp_instance_number | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
Definition at line 297 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 1618 of file pcmk_sched_instances.c.
void pcmk__create_instance_actions | ( | pcmk_resource_t * | collective, |
GList * | instances | ||
) |
Definition at line 973 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 1169 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 1074 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 1568 of file pcmk_sched_instances.c.