pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Typedefs | Enumerations | Functions
compat.h File Reference

Deprecated Pacemaker cluster API. More...

#include <stdint.h>
#include <sys/types.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/cluster.h>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

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_tcrm_get_peer (unsigned int id, const char *uname)
 
crm_node_tcrm_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_tcrm_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)
 

Detailed Description

Deprecated Pacemaker cluster API.

Deprecated:
Do not include this header directly. The cluster APIs in this header, and the header itself, will be removed in a future release.

Definition in file compat.h.

Typedef Documentation

◆ crm_cluster_t

Deprecated:
Use pcmk_cluster_t instead

Definition at line 47 of file compat.h.

Enumeration Type Documentation

◆ cluster_type_e

Deprecated:
Use enum pcmk_cluster_layer instead
Enumerator
pcmk_cluster_unknown 
pcmk_cluster_invalid 
pcmk_cluster_corosync 

Definition at line 135 of file compat.h.

◆ crm_get_peer_flags

Deprecated:
Do not use
Enumerator
CRM_GET_PEER_CLUSTER 
CRM_GET_PEER_REMOTE 
CRM_GET_PEER_ANY 

Definition at line 39 of file compat.h.

Function Documentation

◆ crm_active_peers()

guint crm_active_peers ( void  )
Deprecated:
Do not use

Definition at line 1507 of file membership.c.

◆ crm_cluster_connect()

gboolean crm_cluster_connect ( pcmk_cluster_t cluster)
Deprecated:
Use pcmk_cluster_connect() instead

Definition at line 477 of file cluster.c.

◆ crm_cluster_disconnect()

void crm_cluster_disconnect ( pcmk_cluster_t cluster)
Deprecated:
Use pcmk_cluster_disconnect() instead

Definition at line 483 of file cluster.c.

◆ crm_get_peer()

crm_node_t* crm_get_peer ( unsigned int  id,
const char *  uname 
)
Deprecated:
Do not use Pacemaker for cluster node cacheing

Definition at line 1463 of file membership.c.

◆ crm_get_peer_full()

crm_node_t* crm_get_peer_full ( unsigned int  id,
const char *  uname,
int  flags 
)
Deprecated:
Do not use Pacemaker for cluster node cacheing

Definition at line 1469 of file membership.c.

◆ crm_is_peer_active()

gboolean crm_is_peer_active ( const crm_node_t node)
Deprecated:
Do not use

Definition at line 1501 of file membership.c.

◆ crm_peer_destroy()

void crm_peer_destroy ( void  )
Deprecated:
Do not use

Definition at line 1552 of file membership.c.

◆ crm_peer_init()

void crm_peer_init ( void  )
Deprecated:
Do not use

Definition at line 1546 of file membership.c.

◆ crm_peer_uname()

const char* crm_peer_uname ( const char *  uuid)
Deprecated:
Do not use

Definition at line 541 of file cluster.c.

◆ crm_peer_uuid()

const char* crm_peer_uuid ( crm_node_t node)
Deprecated:
Do not use

Definition at line 523 of file cluster.c.

◆ crm_remote_peer_cache_refresh()

void crm_remote_peer_cache_refresh ( xmlNode *  cib)
Deprecated:
Do not use

Definition at line 1483 of file membership.c.

◆ crm_remote_peer_cache_remove()

void crm_remote_peer_cache_remove ( const char *  node_name)
Deprecated:
Do not use

Definition at line 1495 of file membership.c.

◆ crm_remote_peer_cache_size()

int crm_remote_peer_cache_size ( void  )
Deprecated:
Do not use

Definition at line 1475 of file membership.c.

◆ crm_remote_peer_get()

crm_node_t* crm_remote_peer_get ( const char *  node_name)
Deprecated:
Do not use

Definition at line 1489 of file membership.c.

◆ crm_set_autoreap()

void crm_set_autoreap ( gboolean  enable)
Deprecated:
Do not use

Definition at line 1558 of file membership.c.

◆ crm_set_status_callback()

void crm_set_status_callback ( void(*)(enum crm_status_type, crm_node_t *, const void *)  dispatch)
Deprecated:
Do not use

Definition at line 1564 of file membership.c.

◆ crm_terminate_member()

int crm_terminate_member ( int  nodeid,
const char *  uname,
void *  unused 
)
Deprecated:
Use stonith_api_kick() from libstonithd instead

Definition at line 1451 of file membership.c.

◆ crm_terminate_member_no_mainloop()

int crm_terminate_member_no_mainloop ( int  nodeid,
const char *  uname,
int *  connection 
)
Deprecated:
Use stonith_api_kick() from libstonithd instead

Definition at line 1457 of file membership.c.

◆ get_cluster_type()

enum cluster_type_e get_cluster_type ( void  )
Deprecated:
Use pcmk_get_cluster_layer() instead

Definition at line 504 of file cluster.c.

◆ get_local_node_name()

const char* get_local_node_name ( void  )
Deprecated:
Do not use

Definition at line 535 of file cluster.c.

◆ get_node_name()

char* get_node_name ( uint32_t  nodeid)
Deprecated:
Do not use

Definition at line 529 of file cluster.c.

◆ is_corosync_cluster()

gboolean is_corosync_cluster ( void  )
Deprecated:
Use pcmk_get_cluster_layer() instead

Definition at line 510 of file cluster.c.

◆ name_for_cluster_type()

const char* name_for_cluster_type ( enum cluster_type_e  type)
Deprecated:
Use pcmk_cluster_layer_text() instead

Definition at line 489 of file cluster.c.

◆ reap_crm_member()

guint reap_crm_member ( uint32_t  id,
const char *  name 
)
Deprecated:
Do not use

Definition at line 1513 of file membership.c.

◆ send_cluster_message()

gboolean send_cluster_message ( const crm_node_t node,
enum crm_ais_msg_types  service,
const xmlNode *  data,
gboolean  ordered 
)
Deprecated:
Do not use

Definition at line 516 of file cluster.c.

◆ set_uuid()

void set_uuid ( xmlNode *  xml,
const char *  attr,
crm_node_t node 
)
Deprecated:
Use crm_xml_add(xml, attr, pcmk__cluster_node_uuid(node)) instead

Definition at line 471 of file cluster.c.

◆ text2msg_type()

enum crm_ais_msg_types text2msg_type ( const char *  text)
Deprecated:
Do not use

Definition at line 1164 of file cpg.c.