22 #ifndef MamaStatsCollectorH__
23 #define MamaStatsCollectorH__
27 #if defined(__cplusplus)
138 #if defined(__cplusplus)
MAMAExpDLL mama_status mamaStatsCollector_create(mamaStatsCollector *statsCollector, mamaStatsCollectorType type, const char *name, const char *middleware)
Create a mamaStatsCollector object.
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 int mamaStatsCollector_getLog(mamaStatsCollector statsCollector)
Get whether or not stats are being logged for this stats collector.
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...
Definition: statscollector.h:34
struct mamaStatImpl_ * mamaStat
Definition: types.h:124
MAMAExpDLL mama_status mamaStatsCollector_setName(mamaStatsCollector statsCollector, const char *name)
Set the name of the stats collector object.
MAMAExpDLL mama_status mamaStatsCollector_addStat(mamaStatsCollector statsCollector, mamaStat stat)
Register a stats object with the collector.
Definition: statscollector.h:36
mamaStatsCollectorType
Definition: statscollector.h:31
Definition: statscollector.h:35
Definition: statscollector.h:33
struct mamaStatsCollectorImpl_ * mamaStatsCollector
Definition: types.h:125
uint16_t mama_fid_t
Definition: types.h:46
MAMAExpDLL int mamaStatsCollector_getPublish(mamaStatsCollector statsCollector)
Get whether or not stats are being published for this stats collector.
MAMAExpDLL const char * mamaStatsCollectorType_stringForType(mamaStatsCollectorType type)
Return a string representation of a mamaStatsCollectorType.
mama_status
Definition: status.h:37
MAMAExpDLL mama_status mamaStatsCollector_destroy(mamaStatsCollector statsCollector)
Destroy a mamaStatsCollector object.
MAMAExpDLL mama_status mamaStatsCollector_incrementStat(mamaStatsCollector statsCollector, mama_fid_t identifier)
Increment the current interval value of the stat represented by FID identifier.