syslog-ng source
stats-cluster.c File Reference
#include "stats/stats-cluster.h"
#include "mainloop.h"
#include <assert.h>
#include <string.h>
Include dependency graph for stats-cluster.c:

Functions

void stats_cluster_init (void)
 
gboolean _types_equal (const gchar *a, const gchar *b)
 
guint stats_register_type (const gchar *type_name)
 
void stats_cluster_deinit (void)
 
gboolean stats_cluster_key_labels_equal (StatsClusterLabel *l1, gsize l1_len, StatsClusterLabel *l2, gsize l2_len)
 
guint stats_cluster_key_labels_hash (StatsClusterLabel *labels, gsize labels_len)
 
StatsClusterLabel * stats_cluster_key_labels_clone (StatsClusterLabel *labels, gsize labels_len)
 
void stats_cluster_key_labels_free (StatsClusterLabel *labels, gsize labels_len)
 
StatsClusterKey * stats_cluster_key_clone (StatsClusterKey *dst, const StatsClusterKey *src)
 
void stats_cluster_key_set (StatsClusterKey *self, const gchar *name, StatsClusterLabel *labels, gsize labels_len, StatsCounterGroupInit counter_group_init)
 
void stats_cluster_key_legacy_set (StatsClusterKey *self, guint16 component, const gchar *id, const gchar *instance, StatsCounterGroupInit counter_group_ctor)
 
void stats_cluster_key_add_legacy_alias (StatsClusterKey *self, guint16 component, const gchar *id, const gchar *instance, StatsCounterGroupInit counter_group_ctor)
 
void stats_cluster_key_cloned_free (StatsClusterKey *self)
 
void stats_cluster_key_free (StatsClusterKey *self)
 
void stats_cluster_foreach_counter (StatsCluster *self, StatsForeachCounterFunc func, gpointer user_data)
 
const gchar * stats_cluster_get_type_name (StatsCluster *self, gint type)
 
const gchar * stats_cluster_get_component_name (StatsCluster *self, gchar *buf, gsize buf_len)
 
gboolean stats_counter_group_init_equals (const StatsCounterGroupInit *self, const StatsCounterGroupInit *other)
 
gboolean stats_cluster_key_equal (const StatsClusterKey *key1, const StatsClusterKey *key2)
 
guint stats_cluster_key_hash (const StatsClusterKey *self)
 
StatsCounterItemstats_cluster_track_counter (StatsCluster *self, gint type)
 
StatsCounterItemstats_cluster_get_counter (StatsCluster *self, gint type)
 
void stats_cluster_untrack_counter (StatsCluster *self, gint type, StatsCounterItem **counter)
 
void stats_cluster_reset_counter_if_needed (StatsCluster *sc, StatsCounterItem *counter)
 
gboolean stats_cluster_is_alive (StatsCluster *self, gint type)
 
StatsClusterstats_cluster_new (const StatsClusterKey *key)
 
StatsClusterstats_cluster_dynamic_new (const StatsClusterKey *key)
 
void stats_counter_group_free (StatsCounterGroup *self)
 
void stats_cluster_free (StatsCluster *self)
 

Variables

GPtrArray * stats_types
 

Function Documentation

◆ _types_equal()

gboolean _types_equal ( const gchar *  a,
const gchar *  b 
)

◆ stats_cluster_deinit()

void stats_cluster_deinit ( void  )

◆ stats_cluster_dynamic_new()

StatsCluster* stats_cluster_dynamic_new ( const StatsClusterKey *  key)

◆ stats_cluster_foreach_counter()

void stats_cluster_foreach_counter ( StatsCluster self,
StatsForeachCounterFunc  func,
gpointer  user_data 
)

◆ stats_cluster_free()

void stats_cluster_free ( StatsCluster self)

◆ stats_cluster_get_component_name()

const gchar* stats_cluster_get_component_name ( StatsCluster self,
gchar *  buf,
gsize  buf_len 
)

◆ stats_cluster_get_counter()

StatsCounterItem* stats_cluster_get_counter ( StatsCluster self,
gint  type 
)

◆ stats_cluster_get_type_name()

const gchar* stats_cluster_get_type_name ( StatsCluster self,
gint  type 
)

◆ stats_cluster_init()

void stats_cluster_init ( void  )

◆ stats_cluster_is_alive()

gboolean stats_cluster_is_alive ( StatsCluster self,
gint  type 
)

◆ stats_cluster_key_add_legacy_alias()

void stats_cluster_key_add_legacy_alias ( StatsClusterKey *  self,
guint16  component,
const gchar *  id,
const gchar *  instance,
StatsCounterGroupInit  counter_group_ctor 
)

◆ stats_cluster_key_clone()

StatsClusterKey* stats_cluster_key_clone ( StatsClusterKey *  dst,
const StatsClusterKey *  src 
)

◆ stats_cluster_key_cloned_free()

void stats_cluster_key_cloned_free ( StatsClusterKey *  self)

◆ stats_cluster_key_equal()

gboolean stats_cluster_key_equal ( const StatsClusterKey *  key1,
const StatsClusterKey *  key2 
)

◆ stats_cluster_key_free()

void stats_cluster_key_free ( StatsClusterKey *  self)

◆ stats_cluster_key_hash()

guint stats_cluster_key_hash ( const StatsClusterKey *  self)

◆ stats_cluster_key_labels_clone()

StatsClusterLabel* stats_cluster_key_labels_clone ( StatsClusterLabel *  labels,
gsize  labels_len 
)

◆ stats_cluster_key_labels_equal()

gboolean stats_cluster_key_labels_equal ( StatsClusterLabel *  l1,
gsize  l1_len,
StatsClusterLabel *  l2,
gsize  l2_len 
)

◆ stats_cluster_key_labels_free()

void stats_cluster_key_labels_free ( StatsClusterLabel *  labels,
gsize  labels_len 
)

◆ stats_cluster_key_labels_hash()

guint stats_cluster_key_labels_hash ( StatsClusterLabel *  labels,
gsize  labels_len 
)

◆ stats_cluster_key_legacy_set()

void stats_cluster_key_legacy_set ( StatsClusterKey *  self,
guint16  component,
const gchar *  id,
const gchar *  instance,
StatsCounterGroupInit  counter_group_ctor 
)

◆ stats_cluster_key_set()

void stats_cluster_key_set ( StatsClusterKey *  self,
const gchar *  name,
StatsClusterLabel *  labels,
gsize  labels_len,
StatsCounterGroupInit  counter_group_init 
)

◆ stats_cluster_new()

StatsCluster* stats_cluster_new ( const StatsClusterKey *  key)

◆ stats_cluster_reset_counter_if_needed()

void stats_cluster_reset_counter_if_needed ( StatsCluster sc,
StatsCounterItem counter 
)

◆ stats_cluster_track_counter()

StatsCounterItem* stats_cluster_track_counter ( StatsCluster self,
gint  type 
)

◆ stats_cluster_untrack_counter()

void stats_cluster_untrack_counter ( StatsCluster self,
gint  type,
StatsCounterItem **  counter 
)

◆ stats_counter_group_free()

void stats_counter_group_free ( StatsCounterGroup *  self)

◆ stats_counter_group_init_equals()

gboolean stats_counter_group_init_equals ( const StatsCounterGroupInit *  self,
const StatsCounterGroupInit *  other 
)

◆ stats_register_type()

guint stats_register_type ( const gchar *  type_name)

Variable Documentation

◆ stats_types

GPtrArray* stats_types