27 #if defined(__cplusplus) 31 #define MAMA_STAT_NOT_LOCKABLE 0 32 #define MAMA_STAT_LOCKABLE 1 269 #if defined(__cplusplus)
MAMAExpDLL int mamaStat_getIntervalValue(mamaStat stat)
Get the value of the stat for the current interval.
struct mamaStatImpl_ * mamaStat
Definition: types.h:124
MAMAExpDLL mama_status mamaStat_create(mamaStat *stat, mamaStatsCollector collector, int lockable, const char *name, mama_fid_t type)
Create a mamaStats object.
MAMAExpDLL mama_status mamaStat_setPublish(mamaStat stat, int publish)
Set whether or not to publish this stat.
MAMAExpDLL mama_status mamaStat_subtract(mamaStat stat, int value)
Subtract the stats object counter with the value.
MAMAExpDLL int mamaStat_getMaxValue(mamaStat stat)
Get the maximum value of the stat.
MAMAExpDLL mama_status mamaStat_add(mamaStat stat, int value)
Adds the stats object counter with the value.
MAMAExpDLL mama_status mamaStat_decrement(mamaStat stat)
Decrement the stats object counter.
MAMAExpDLL const char * mamaStat_getName(mamaStat stat)
Get the name of the stat.
struct mamaStatsCollectorImpl_ * mamaStatsCollector
Definition: types.h:125
uint16_t mama_fid_t
Definition: types.h:46
MAMAExpDLL mamaStatType mamaStatType_fromString(const char *statTypeString)
Returns a mamaStatType from a string.
MAMAExpDLL int mamaStat_getPublish(mamaStat stat)
Returns whether or not the stat is currently being published.
MAMAExpDLL mama_status mamaStat_increment(mamaStat stat)
Increment the stats object counter.
MAMAExpDLL mama_status mamaStat_destroy(mamaStat stat)
Destroy a mamaStats object.
MAMAExpDLL mama_status mamaStat_setLog(mamaStat stat, int log)
Set whether or not this stat should be logged in the MAMA log.
MAMAExpDLL int mamaStat_getTotalValue(mamaStat stat)
Get the total value of the stat.
mama_status
Definition: status.h:37
uint32_t mama_u32_t
Definition: types.h:39
MAMAExpDLL mama_status mamaStat_setIntervalValue(mamaStat stat, int value)
set the Interval value
MAMAExpDLL int mamaStat_getLog(mamaStat stat)
Returns whether or not the stat is currently being logged to the MAMA log.
MAMAExpDLL void mamaStat_getStats(mamaStat stat, mama_i32_t *intervalValue, mama_u32_t *maxValue, mama_u32_t *totalValue)
Get the interval, maximum, and total values for the stat.
int32_t mama_i32_t
Definition: types.h:38
mamaStatType
Definition: stat.h:34
MAMAExpDLL mama_status mamaStat_reset(mamaStat stat)
Reset the stats object counter.
MAMAExpDLL const char * mamaStatType_toString(mamaStatType statType)
Returns a string representation of a mamaStatType.
MAMAExpDLL mama_fid_t mamaStat_getFid(mamaStat stat)
Get the FID used when publishing the stat via the stats logger.