![]() |
#include <aerospike/as_error.h>
#include <aerospike/as_event.h>
#include <aerospike/as_queue.h>
#include <aerospike/as_vector.h>
#include <citrusleaf/cf_queue.h>
#include <netinet/in.h>
#include <sys/uio.h>
#include <aerospike/ck/ck_pr.h>
Go to the source code of this file.
Data Structures | |
struct | as_address |
struct | as_host |
struct | as_node |
struct | as_node_info |
Macros | |
#define | AS_HOSTNAME_SIZE 256 |
#define | AS_NODE_NAME_MAX_SIZE AS_NODE_NAME_SIZE |
#define | AS_NODE_NAME_SIZE 20 |
Functions | |
static bool | as_host_equals (as_host *h1, as_host *h2) |
void | as_node_add_address (as_node *node, as_host *host, struct sockaddr_in *addr) |
static void | as_node_close_connection (as_node *node, int fd) |
as_node * | as_node_create (struct as_cluster_s *cluster, as_host *host, struct sockaddr_in *addr, as_node_info *node_info) |
static void | as_node_deactivate (as_node *node) |
void | as_node_destroy (as_node *node) |
static struct sockaddr_in * | as_node_get_address (as_node *node) |
static as_address * | as_node_get_address_full (as_node *node) |
as_status | as_node_get_connection (as_error *err, as_node *node, uint64_t deadline_ms, int *fd) |
static void | as_node_put_connection (as_node *node, int fd) |
static void | as_node_release (as_node *node) |
static void | as_node_reserve (as_node *node) |
#define AS_HOSTNAME_SIZE 256 |
#define AS_NODE_NAME_MAX_SIZE AS_NODE_NAME_SIZE |
Are hosts equal.
Definition at line 388 of file as_node.h.
References as_host::name, and as_host::port.
Add socket address to node addresses.
|
inlinestaticprivate |
Close a node's connection and do not put back into pool.
Definition at line 366 of file as_node.h.
References as_node::conn_count.
|
private |
Create new cluster node.
|
inlinestaticprivate |
|
private |
Close all connections in pool and free resources.
|
staticprivate |
Get socket address and name.
Definition at line 339 of file as_node.h.
References as_address::addr, as_node::address_index, as_node::addresses, and as_vector_get().
|
inlinestatic |
Get socket address and name.
Definition at line 349 of file as_node.h.
References as_node::address_index, as_node::addresses, and as_vector_get().
|
private |
Get a connection to the given node from pool and validate. Return 0 on success.
|
inlinestaticprivate |
Put connection back into pool.
Definition at line 376 of file as_node.h.
References as_node_close_connection(), and as_node::conn_q.
|
inlinestaticprivate |
Release existing cluster node.
Definition at line 315 of file as_node.h.
References as_node_destroy(), and as_node::ref_count.
|
inlinestaticprivate |
Reserve existing cluster node.
Definition at line 304 of file as_node.h.
References as_node::ref_count.