#include <aerospike/as_error.h>
#include <aerospike/as_event.h>
#include <aerospike/as_socket.h>
#include <aerospike/as_queue.h>
#include <aerospike/as_vector.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, struct sockaddr *addr) |
|
void | as_node_add_alias (as_node *node, const char *hostname, in_port_t port) |
|
static void | as_node_close_connection (as_socket *sock) |
|
as_node * | as_node_create (struct as_cluster_s *cluster, const char *hostname, const char *tls_name, in_port_t port, bool is_alias, struct sockaddr *addr, as_node_info *node_info) |
|
static void | as_node_deactivate (as_node *node) |
|
void | as_node_destroy (as_node *node) |
|
static as_address * | as_node_get_address (as_node *node) |
|
static const char * | as_node_get_address_string (as_node *node) |
|
as_status | as_node_get_connection (as_error *err, as_node *node, uint64_t deadline_ms, as_socket *sock) |
|
static void | as_node_put_connection (as_socket *sock) |
|
static void | as_node_release (as_node *node) |
|
static void | as_node_reserve (as_node *node) |
|
#define AS_ADDRESS4_MAX 4 |
#define AS_ADDRESS6_MAX 8 |
#define AS_FEATURES_BATCH_INDEX (1 << 2) |
#define AS_FEATURES_DOUBLE (1 << 1) |
#define AS_FEATURES_GEO (1 << 0) |
#define AS_FEATURES_PEERS (1 << 5) |
#define AS_FEATURES_PIPELINING (1 << 4) |
#define AS_FEATURES_REPLICAS_ALL (1 << 3) |
#define AS_HOSTNAME_SIZE 256 |
Maximum size (including NULL byte) of a hostname.
Definition at line 41 of file as_node.h.
#define AS_IP_ADDRESS_SIZE 64 |
#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, |
|
|
struct sockaddr * |
addr |
|
) |
| |
|
private |
Add socket address to node addresses.
void as_node_add_alias |
( |
as_node * |
node, |
|
|
const char * |
hostname, |
|
|
in_port_t |
port |
|
) |
| |
|
private |
Add hostname to node aliases.
static void as_node_close_connection |
( |
as_socket * |
sock) | |
|
|
inlinestaticprivate |
as_node* as_node_create |
( |
struct as_cluster_s * |
cluster, |
|
|
const char * |
hostname, |
|
|
const char * |
tls_name, |
|
|
in_port_t |
port, |
|
|
bool |
is_alias, |
|
|
struct sockaddr * |
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 const char* as_node_get_address_string |
( |
as_node * |
node) | |
|
|
inlinestatic |
Get a connection to the given node from pool and validate. Return 0 on success.
static void as_node_put_connection |
( |
as_socket * |
sock) | |
|
|
inlinestaticprivate |
static void as_node_release |
( |
as_node * |
node) | |
|
|
inlinestaticprivate |
static void as_node_reserve |
( |
as_node * |
node) | |
|
|
inlinestaticprivate |