Loading...
Searching...
No Matches
Data Structures | Functions
as_peers.h File Reference
#include <aerospike/as_std.h>
#include <aerospike/as_status.h>
#include <aerospike/as_error.h>
#include <aerospike/as_host.h>
#include <aerospike/as_vector.h>
+ Include dependency graph for as_peers.h:

Go to the source code of this file.

Data Structures

struct  as_peers
 

Functions

static void as_peers_add_invalid_host (as_peers *peers, as_host *host)
 
bool as_peers_find_invalid_host (as_peers *peers, as_host *host)
 
struct as_node_s * as_peers_find_local_node (as_vector *nodes, const char *name)
 
static uint32_t as_peers_invalid_count (as_peers *peers)
 
as_status as_peers_parse_peers (as_peers *peers, as_error *err, struct as_cluster_s *cluster, struct as_node_s *node, char *buf)
 

Function Documentation

◆ as_peers_add_invalid_host()

static void as_peers_add_invalid_host ( as_peers * peers,
as_host * host )
inlinestatic

Definition at line 60 of file as_peers.h.

References as_host_copy(), as_vector_reserve(), and as_peers::invalid_hosts.

◆ as_peers_find_invalid_host()

bool as_peers_find_invalid_host ( as_peers * peers,
as_host * host )

◆ as_peers_find_local_node()

struct as_node_s * as_peers_find_local_node ( as_vector * nodes,
const char * name )

◆ as_peers_invalid_count()

static uint32_t as_peers_invalid_count ( as_peers * peers)
inlinestatic

Definition at line 67 of file as_peers.h.

References as_peers::invalid_hosts, and as_vector::size.

◆ as_peers_parse_peers()

as_status as_peers_parse_peers ( as_peers * peers,
as_error * err,
struct as_cluster_s * cluster,
struct as_node_s * node,
char * buf )