![]() |
#include <aerospike/as_config.h>#include <aerospike/as_node.h>#include <aerospike/as_partition.h>#include <aerospike/as_policy.h>#include <aerospike/as_thread_pool.h>#include <aerospike/ck/ck_pr.h>
Include dependency graph for as_cluster.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | as_cluster |
| struct | as_gc_item |
| struct | as_nodes |
Typedefs | |
| typedef void(* | as_release_fn )(void *value) |
| typedef void(* as_release_fn)(void *value) |
Reference counted release function definition.
Definition at line 64 of file as_cluster.h.
|
private |
Change user and password that is used to authenticate with cluster servers.
| as_status as_cluster_create | ( | as_config * | config, |
| as_error * | err, | ||
| as_cluster ** | cluster | ||
| ) |
Create and initialize cluster.
| void as_cluster_destroy | ( | as_cluster * | cluster) |
Close all connections and release memory associated with cluster.
| void as_cluster_get_node_names | ( | as_cluster * | cluster, |
| int * | n_nodes, | ||
| char ** | node_names | ||
| ) |
Get all node names in cluster.
|
inlinestaticprivate |
Get partition table given namespace.
Definition at line 393 of file as_cluster.h.
References as_partition_tables_get(), as_partition_tables_release(), and as_partition_tables_reserve().
| bool as_cluster_is_connected | ( | as_cluster * | cluster) |
Is cluster connected to any server nodes.
| void as_cluster_set_async_max_conns_per_node | ( | as_cluster * | cluster, |
| uint32_t | async_size, | ||
| uint32_t | pipe_size | ||
| ) |
Change maximum async connections per node.
|
inlinestaticprivate |
Get mapped node given digest key. If there is no mapped node, a random node is used instead. as_nodes_release() must be called when done with node.
Definition at line 428 of file as_cluster.h.
References as_cluster_get_partition_table(), as_node_get_random(), as_partition_table_get_node(), as_shm_node_get(), and as_cluster::shm_info.
|
private |
Get node given node name. as_nodes_release() must be called when done with node.
|
private |
Get random node in the cluster. as_nodes_release() must be called when done with node.
|
inlinestatic |
Release reference counted access to cluster nodes.
Definition at line 319 of file as_cluster.h.
References as_nodes::ref_count.
|
inlinestatic |
Reserve reference counted access to cluster nodes.
Definition at line 307 of file as_cluster.h.
References as_cluster::nodes, and as_nodes::ref_count.
|
private |
Get mapped node given digest key and partition table. If there is no mapped node, a random node is used instead. as_nodes_release() must be called when done with node.
|
inlinestaticprivate |
Release reference counted access to partition tables.
Definition at line 378 of file as_cluster.h.
References as_partition_tables::ref_count.
|
inlinestaticprivate |
Reserve reference counted access to partition tables. as_partition_tables_release() must be called when done with tables.
Definition at line 366 of file as_cluster.h.
References as_cluster::partition_tables, and as_partition_tables::ref_count.
|
private |
Get shared memory mapped node given digest key. If there is no mapped node, a random node is used instead. as_nodes_release() must be called when done with node.