#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.
|
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) |
|
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, uint32_t limit) |
|
static void | as_node_release (as_node *node) |
|
static void | as_node_reserve (as_node *node) |
|
#define AS_HOSTNAME_SIZE 256 |
Maximum size (including NULL byte) of a hostname.
Definition at line 41 of file as_node.h.
#define AS_NODE_NAME_SIZE 20 |
Maximum size of node name
Definition at line 46 of file as_node.h.
void as_node_add_address |
( |
as_node * |
node, |
|
|
as_host * |
host, |
|
|
struct sockaddr_in * |
addr |
|
) |
| |
|
private |
Add socket address to node addresses.
static void as_node_deactivate |
( |
as_node * |
node) | |
|
|
inlinestaticprivate |
void as_node_destroy |
( |
as_node * |
node) | |
|
|
private |
Close all connections in pool and free resources.
static struct sockaddr_in* as_node_get_address |
( |
as_node * |
node) | |
|
|
staticprivate |
Get a connection to the given node from pool and validate. Return 0 on success.
static void as_node_put_connection |
( |
as_node * |
node, |
|
|
int |
fd, |
|
|
uint32_t |
limit |
|
) |
| |
|
inlinestaticprivate |
Put connection back into pool if pool size < limit. Otherwise, close connection.
Definition at line 342 of file as_node.h.
References as_node::conn_q.
static void as_node_release |
( |
as_node * |
node) | |
|
|
inlinestaticprivate |
static void as_node_reserve |
( |
as_node * |
node) | |
|
|
inlinestaticprivate |