#include <aerospike/as_atomic.h>
#include <aerospike/as_config.h>
#include <aerospike/as_metrics.h>
#include <aerospike/as_node.h>
#include <aerospike/as_partition.h>
#include <aerospike/as_policy.h>
#include <aerospike/as_thread_pool.h>
Go to the source code of this file.
Data Structures | |
struct | as_cluster |
struct | as_event_state |
struct | as_gc_item |
struct | as_nodes |
Typedefs | |
typedef void(* | as_release_fn) (void *value) |
|
private |
Reference counted release function definition.
Definition at line 79 of file as_cluster.h.
|
inlinestaticprivate |
Increment async delay queue timeout count.
Definition at line 668 of file as_cluster.h.
References as_incr_uint64, and as_cluster::delay_queue_timeout_count.
|
inlinestaticprivate |
Add transaction retry count. There can be multiple retries for a single transaction.
Definition at line 648 of file as_cluster.h.
References as_faa_uint64, and as_cluster::retry_count.
|
inlinestaticprivate |
Increment async delay queue timeout count.
Definition at line 638 of file as_cluster.h.
References as_incr_uint64, and as_cluster::retry_count.
AS_EXTERN void as_cluster_add_seed | ( | as_cluster * | cluster, |
const char * | hostname, | ||
const char * | tls_name, | ||
uint16_t | port ) |
Add seed to cluster.
|
inlinestaticprivate |
Increment transaction count when metrics are enabled.
Definition at line 616 of file as_cluster.h.
References as_incr_uint64, as_cluster::metrics_enabled, and as_cluster::tran_count.
|
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.
|
private |
Disable the collection of metrics
|
private |
Enable the collection of metrics
|
inlinestaticprivate |
Return async delay queue timeout count.
Definition at line 678 of file as_cluster.h.
References as_load_uint64, and as_cluster::delay_queue_timeout_count.
void as_cluster_get_node_names | ( | as_cluster * | cluster, |
int * | n_nodes, | ||
char ** | node_names ) |
Get all node names in cluster.
|
inlinestaticprivate |
Return transaction retry count. The value is cumulative and not reset per metrics interval.
Definition at line 658 of file as_cluster.h.
References as_load_uint64, and as_cluster::retry_count.
|
inlinestaticprivate |
Return transaction count. The value is cumulative and not reset per metrics interval.
Definition at line 628 of file as_cluster.h.
References as_load_uint64, and as_cluster::tran_count.
bool as_cluster_is_connected | ( | as_cluster * | cluster | ) |
Is cluster connected to any server nodes.
|
inlinestatic |
AS_EXTERN void as_cluster_remove_seed | ( | as_cluster * | cluster, |
const char * | hostname, | ||
uint16_t | port ) |
Remove seed from cluster.
AS_EXTERN as_status as_cluster_reserve_all_nodes | ( | as_cluster * | cluster, |
as_error * | err, | ||
as_nodes ** | nodes ) |
Reserve nodes. Return error if cluster is empty.
as_status as_cluster_validate_size | ( | as_cluster * | cluster, |
as_error * | err, | ||
uint32_t * | size ) |
Verify cluster contains nodes and return node count.
|
inlinestaticprivate |
Close connection and increment node's error count.
Definition at line 752 of file as_cluster.h.
References as_node_close_connection(), and as_node_incr_error_rate().
|
private |
Get node given node name. as_nodes_release() must be called when done with node.
|
inlinestaticprivate |
Get node's error count.
Definition at line 731 of file as_cluster.h.
References as_load_uint32, and as_node::error_rate.
|
private |
Get random node in the cluster. as_nodes_release() must be called when done with node.
|
inlinestaticprivate |
Increment node's error count.
Definition at line 709 of file as_cluster.h.
References as_incr_uint32, as_node::cluster, and as_node::error_rate.
Put connection in pool and increment node's error count.
Definition at line 763 of file as_cluster.h.
References as_node_incr_error_rate(), and as_node_put_connection().
|
inlinestaticprivate |
Reset node's error count.
Definition at line 721 of file as_cluster.h.
References as_store_uint32, and as_node::error_rate.
|
inlinestaticprivate |
Validate node's error count.
Definition at line 741 of file as_cluster.h.
References as_load_uint32, as_node::cluster, and as_node::error_rate.
Release each individual node and free nodes struct.
|
inlinestatic |
Release reference counted access to cluster nodes.
Definition at line 509 of file as_cluster.h.
References as_aaf_uint32_rls, as_fence_acq, as_nodes_destroy(), and as_nodes::ref_count.
|
inlinestatic |
Reserve reference counted access to cluster nodes.
Definition at line 492 of file as_cluster.h.
References as_incr_uint32, as_load_ptr, as_cluster::nodes, and as_nodes::ref_count.
|
inlinestaticprivate |
Get mapped node given partition and replica. This function does not reserve the node. The caller must reserve the node for future use.
Definition at line 689 of file as_cluster.h.
References as_partition_reg_get_node(), as_partition_shm_get_node(), and as_cluster::shm_info.
|
private |
Get mapped node given partition and replica. This function does not reserve the node. The caller must reserve the node for future use.
|
private |
Get mapped node given partition and replica. The function does not reserve the node. The caller must reserve the node for future use.