Go to the documentation of this file.
22 #ifndef MamaStatsCollectorH__
23 #define MamaStatsCollectorH__
27 #if defined(__cplusplus)
138 #if defined(__cplusplus)
MAMAExpDLL mama_status mamaStatsCollector_setPublish(mamaStatsCollector statsCollector, int publish)
Set whether or not stats for this stats collector object should be published in stats messages.
MAMAExpDLL mama_status mamaStatsCollector_setLog(mamaStatsCollector statsCollector, int log)
Set whether or not stats for this stats collector object should be logged to the MAMA log.
MAMAExpDLL mama_status mamaStatsCollector_setName(mamaStatsCollector statsCollector, const char *name)
Set the name of the stats collector object.
struct mamaStatsCollectorImpl_ * mamaStatsCollector
Definition: types.h:125
MAMAExpDLL int mamaStatsCollector_getLog(mamaStatsCollector statsCollector)
Get whether or not stats are being logged for this stats collector.
mama_status
Definition: status.h:37
struct mamaStatImpl_ * mamaStat
Definition: types.h:124
MAMAExpDLL mama_status mamaStatsCollector_addStat(mamaStatsCollector statsCollector, mamaStat stat)
Register a stats object with the collector.
@ MAMA_STATS_COLLECTOR_TYPE_TRANSPORT
Definition: statscollector.h:34
@ MAMA_STATS_COLLECTOR_TYPE_GLOBAL
Definition: statscollector.h:36
const MAMAExpDLL char * mamaStatsCollectorType_stringForType(mamaStatsCollectorType type)
Return a string representation of a mamaStatsCollectorType.
uint16_t mama_fid_t
Definition: types.h:46
MAMAExpDLL mama_status mamaStatsCollector_create(mamaStatsCollector *statsCollector, mamaStatsCollectorType type, const char *name, const char *middleware)
Create a mamaStatsCollector object.
MAMAExpDLL int mamaStatsCollector_getPublish(mamaStatsCollector statsCollector)
Get whether or not stats are being published for this stats collector.
@ MAMA_STATS_COLLECTOR_TYPE_USER
Definition: statscollector.h:35
@ MAMA_STATS_COLLECTOR_TYPE_QUEUE
Definition: statscollector.h:33
MAMAExpDLL mama_status mamaStatsCollector_destroy(mamaStatsCollector statsCollector)
Destroy a mamaStatsCollector object.
mamaStatsCollectorType
Definition: statscollector.h:31
MAMAExpDLL mama_status mamaStatsCollector_incrementStat(mamaStatsCollector statsCollector, mama_fid_t identifier)
Increment the current interval value of the stat represented by FID identifier.