#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.
#define AS_NODE_NAME_SIZE 20 |
Maximum size of node name
Definition at line 41 of file as_node.h.
void as_node_add_address |
( |
as_node * |
node, |
|
|
struct sockaddr_in * |
addr |
|
) |
| |
|
private |
Add socket address to node addresses.
as_node* as_node_create |
( |
struct as_cluster_s * |
cluster, |
|
|
struct sockaddr_in * |
addr, |
|
|
as_node_info * |
node_info |
|
) |
| |
|
private |
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 347 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 |