All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
Cluster Statistics

Description

Statistics for each Aerospike client instance.

Data Structures

struct  as_cluster_stats
 
struct  as_conn_stats
 
struct  as_event_loop_stats
 
struct  as_node_stats
 

Functions

AS_EXTERN void aerospike_cluster_stats (struct as_cluster_s *cluster, as_cluster_stats *stats)
 
static void aerospike_event_loop_stats (as_event_loop *event_loop, as_event_loop_stats *stats)
 
AS_EXTERN void aerospike_node_stats (as_node *node, as_node_stats *stats)
 
static void aerospike_node_stats_destroy (as_node_stats *stats)
 
static void aerospike_stats (aerospike *as, as_cluster_stats *stats)
 
AS_EXTERN void aerospike_stats_destroy (as_cluster_stats *stats)
 
AS_EXTERN char * aerospike_stats_to_string (as_cluster_stats *stats)
 

Function Documentation

AS_EXTERN void aerospike_cluster_stats ( struct as_cluster_s *  cluster,
as_cluster_stats stats 
)

Retrieve aerospike cluster statistics.

Parameters
clusterThe aerospike cluster.
statsThe statistics summary for specified cluster.
static void aerospike_event_loop_stats ( as_event_loop event_loop,
as_event_loop_stats stats 
)
inlinestatic

Retrieve aerospike event loop statistics.

Parameters
event_loopThe event loop.
statsThe statistics summary for specified event loop.

Definition at line 229 of file aerospike_stats.h.

References as_event_loop_get_process_size(), as_event_loop_get_queue_size(), as_event_loop_stats::process_size, and as_event_loop_stats::queue_size.

AS_EXTERN void aerospike_node_stats ( as_node node,
as_node_stats stats 
)

Retrieve aerospike node statistics.

Parameters
nodeThe server node.
statsThe statistics summary for specified node.
static void aerospike_node_stats_destroy ( as_node_stats stats)
inlinestatic

Release node reference allocated in aerospike_node_stats().

Parameters
statsThe statistics summary for specified node.

Definition at line 215 of file aerospike_stats.h.

References as_node_release(), and as_node_stats::node.

static void aerospike_stats ( aerospike as,
as_cluster_stats stats 
)
inlinestatic

Retrieve aerospike client instance statistics.

Parameters
asThe aerospike instance.
statsThe statistics summary for specified client instance.

Definition at line 181 of file aerospike_stats.h.

References aerospike_cluster_stats(), and aerospike::cluster.

AS_EXTERN void aerospike_stats_destroy ( as_cluster_stats stats)

Release node references and memory allocated in aerospike_stats().

Parameters
statsThe cluster statistics summary.
AS_EXTERN char* aerospike_stats_to_string ( as_cluster_stats stats)

Return string representation of cluster statistics. The string should be freed when it's no longer needed.