All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

◆ aerospike_cluster_stats()

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.

◆ aerospike_event_loop_stats()

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 241 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.

◆ aerospike_node_stats()

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.

◆ aerospike_node_stats_destroy()

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 227 of file aerospike_stats.h.

References as_node_release(), and as_node_stats::node.

◆ aerospike_stats()

static void aerospike_stats ( aerospike * as,
as_cluster_stats * stats )
inlinestatic

Retrieve aerospike client instance statistics.

aerospike_stats(&as, &stats);
static void aerospike_stats(aerospike *as, as_cluster_stats *stats)
AS_EXTERN void aerospike_stats_destroy(as_cluster_stats *stats)
Parameters
asThe aerospike instance.
statsThe statistics summary for specified client instance.

Definition at line 193 of file aerospike_stats.h.

References aerospike_cluster_stats(), and aerospike::cluster.

◆ aerospike_stats_destroy()

AS_EXTERN void aerospike_stats_destroy ( as_cluster_stats * stats)

Release node references and memory allocated in aerospike_stats().

Parameters
statsThe cluster statistics summary.

◆ aerospike_stats_to_string()

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.