pacemaker
2.1.8-3980678f03
Scalable High-Availability cluster resource manager
|
Deprecated Pacemaker cluster API. More...
#include <stdint.h>
#include <sys/types.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/cluster.h>
Go to the source code of this file.
Typedefs | |
typedef pcmk_cluster_t | crm_cluster_t |
Enumerations | |
enum | crm_get_peer_flags { CRM_GET_PEER_CLUSTER = 0x0001, CRM_GET_PEER_REMOTE = 0x0002, CRM_GET_PEER_ANY = CRM_GET_PEER_CLUSTER|CRM_GET_PEER_REMOTE } |
enum | cluster_type_e { pcmk_cluster_unknown = pcmk_cluster_layer_unknown, pcmk_cluster_invalid = pcmk_cluster_layer_invalid, pcmk_cluster_corosync = pcmk_cluster_layer_corosync } |
Functions | |
crm_node_t * | crm_get_peer (unsigned int id, const char *uname) |
crm_node_t * | crm_get_peer_full (unsigned int id, const char *uname, int flags) |
int | crm_terminate_member (int nodeid, const char *uname, void *unused) |
int | crm_terminate_member_no_mainloop (int nodeid, const char *uname, int *connection) |
void | set_uuid (xmlNode *xml, const char *attr, crm_node_t *node) |
gboolean | crm_cluster_connect (pcmk_cluster_t *cluster) |
void | crm_cluster_disconnect (pcmk_cluster_t *cluster) |
int | crm_remote_peer_cache_size (void) |
void | crm_remote_peer_cache_refresh (xmlNode *cib) |
crm_node_t * | crm_remote_peer_get (const char *node_name) |
void | crm_remote_peer_cache_remove (const char *node_name) |
gboolean | crm_is_peer_active (const crm_node_t *node) |
guint | crm_active_peers (void) |
guint | reap_crm_member (uint32_t id, const char *name) |
const char * | name_for_cluster_type (enum cluster_type_e type) |
enum cluster_type_e | get_cluster_type (void) |
gboolean | is_corosync_cluster (void) |
void | crm_peer_init (void) |
void | crm_peer_destroy (void) |
gboolean | send_cluster_message (const crm_node_t *node, enum crm_ais_msg_types service, const xmlNode *data, gboolean ordered) |
const char * | crm_peer_uuid (crm_node_t *node) |
enum crm_ais_msg_types | text2msg_type (const char *text) |
char * | get_node_name (uint32_t nodeid) |
const char * | get_local_node_name (void) |
void | crm_set_autoreap (gboolean enable) |
void | crm_set_status_callback (void(*dispatch)(enum crm_status_type, crm_node_t *, const void *)) |
const char * | crm_peer_uname (const char *uuid) |
Deprecated Pacemaker cluster API.
Definition in file compat.h.
typedef pcmk_cluster_t crm_cluster_t |
pcmk_cluster_t
instead enum cluster_type_e |
enum pcmk_cluster_layer
instead Enumerator | |
---|---|
pcmk_cluster_unknown | |
pcmk_cluster_invalid | |
pcmk_cluster_corosync |
enum crm_get_peer_flags |
Enumerator | |
---|---|
CRM_GET_PEER_CLUSTER | |
CRM_GET_PEER_REMOTE | |
CRM_GET_PEER_ANY |
guint crm_active_peers | ( | void | ) |
Definition at line 1507 of file membership.c.
gboolean crm_cluster_connect | ( | pcmk_cluster_t * | cluster | ) |
pcmk_cluster_connect()
instead void crm_cluster_disconnect | ( | pcmk_cluster_t * | cluster | ) |
pcmk_cluster_disconnect()
instead crm_node_t* crm_get_peer | ( | unsigned int | id, |
const char * | uname | ||
) |
Definition at line 1463 of file membership.c.
crm_node_t* crm_get_peer_full | ( | unsigned int | id, |
const char * | uname, | ||
int | flags | ||
) |
Definition at line 1469 of file membership.c.
gboolean crm_is_peer_active | ( | const crm_node_t * | node | ) |
Definition at line 1501 of file membership.c.
void crm_peer_destroy | ( | void | ) |
Definition at line 1552 of file membership.c.
void crm_peer_init | ( | void | ) |
Definition at line 1546 of file membership.c.
const char* crm_peer_uname | ( | const char * | uuid | ) |
const char* crm_peer_uuid | ( | crm_node_t * | node | ) |
void crm_remote_peer_cache_refresh | ( | xmlNode * | cib | ) |
Definition at line 1483 of file membership.c.
void crm_remote_peer_cache_remove | ( | const char * | node_name | ) |
Definition at line 1495 of file membership.c.
int crm_remote_peer_cache_size | ( | void | ) |
Definition at line 1475 of file membership.c.
crm_node_t* crm_remote_peer_get | ( | const char * | node_name | ) |
Definition at line 1489 of file membership.c.
void crm_set_autoreap | ( | gboolean | enable | ) |
Definition at line 1558 of file membership.c.
void crm_set_status_callback | ( | void(*)(enum crm_status_type, crm_node_t *, const void *) | dispatch | ) |
Definition at line 1564 of file membership.c.
int crm_terminate_member | ( | int | nodeid, |
const char * | uname, | ||
void * | unused | ||
) |
Definition at line 1451 of file membership.c.
int crm_terminate_member_no_mainloop | ( | int | nodeid, |
const char * | uname, | ||
int * | connection | ||
) |
stonith_api_kick()
from libstonithd instead Definition at line 1457 of file membership.c.
enum cluster_type_e get_cluster_type | ( | void | ) |
pcmk_get_cluster_layer()
instead const char* get_local_node_name | ( | void | ) |
char* get_node_name | ( | uint32_t | nodeid | ) |
gboolean is_corosync_cluster | ( | void | ) |
pcmk_get_cluster_layer()
instead const char* name_for_cluster_type | ( | enum cluster_type_e | type | ) |
pcmk_cluster_layer_text()
instead guint reap_crm_member | ( | uint32_t | id, |
const char * | name | ||
) |
Definition at line 1513 of file membership.c.
gboolean send_cluster_message | ( | const crm_node_t * | node, |
enum crm_ais_msg_types | service, | ||
const xmlNode * | data, | ||
gboolean | ordered | ||
) |
void set_uuid | ( | xmlNode * | xml, |
const char * | attr, | ||
crm_node_t * | node | ||
) |
crm_xml_add(xml, attr, pcmk__cluster_node_uuid(node))
instead enum crm_ais_msg_types text2msg_type | ( | const char * | text | ) |