pacemaker
1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <crm/common/mainloop.h>
#include <crm/cluster/internal.h>
#include <crm/cluster/election.h>
#include <crm/crm.h>
Go to the source code of this file.
Macros | |
#define | STORM_INTERVAL 2 /* in seconds */ |
#define | loss_dampen 2 /* in seconds */ |
Functions | |
enum election_result | election_state (election_t *e) |
election_t * | election_init (const char *name, const char *uname, guint period_ms, GSourceFunc cb) |
void | election_remove (election_t *e, const char *uname) |
void | election_reset (election_t *e) |
void | election_fini (election_t *e) |
void | election_timeout_stop (election_t *e) |
void | election_timeout_set_period (election_t *e, guint period) |
void | election_vote (election_t *e) |
bool | election_check (election_t *e) |
enum election_result | election_count_vote (election_t *e, xmlNode *vote, bool can_win) |
#define loss_dampen 2 /* in seconds */ |
Definition at line 300 of file election.c.
#define STORM_INTERVAL 2 /* in seconds */ |
Definition at line 21 of file election.c.
bool election_check | ( | election_t * | e | ) |
Definition at line 250 of file election.c.
enum election_result election_count_vote | ( | election_t * | e, |
xmlNode * | vote, | ||
bool | can_win | ||
) |
Definition at line 304 of file election.c.
void election_fini | ( | election_t * | e | ) |
Definition at line 108 of file election.c.
election_t* election_init | ( | const char * | name, |
const char * | uname, | ||
guint | period_ms, | ||
GSourceFunc | cb | ||
) |
Definition at line 65 of file election.c.
void election_remove | ( | election_t * | e, |
const char * | uname | ||
) |
Definition at line 86 of file election.c.
void election_reset | ( | election_t * | e | ) |
Definition at line 94 of file election.c.
enum election_result election_state | ( | election_t * | e | ) |
Definition at line 56 of file election.c.
void election_timeout_set_period | ( | election_t * | e, |
guint | period | ||
) |
Definition at line 137 of file election.c.
void election_timeout_stop | ( | election_t * | e | ) |
Definition at line 129 of file election.c.
void election_vote | ( | election_t * | e | ) |
Definition at line 208 of file election.c.