Name | |
---|---|
enum | mamaStatsCollectorType { MAMA_STATS_COLLECTOR_TYPE_QUEUE = 0, MAMA_STATS_COLLECTOR_TYPE_TRANSPORT = 1, MAMA_STATS_COLLECTOR_TYPE_USER = 2, MAMA_STATS_COLLECTOR_TYPE_GLOBAL = 3} |
typedef enum mamaStatsCollectorType | mamaStatsCollectorType |
Name | |
---|---|
MAMAExpDLL mama_status | mamaStatsCollector_create(mamaStatsCollector * statsCollector, mamaStatsCollectorType type, const char * name, const char * middleware) |
MAMAExpDLL mama_status | mamaStatsCollector_destroy(mamaStatsCollector statsCollector) |
MAMAExpDLL mama_status | mamaStatsCollector_addStat(mamaStatsCollector statsCollector, mamaStat stat) |
MAMAExpDLL mama_status | mamaStatsCollector_incrementStat(mamaStatsCollector statsCollector, mama_fid_t identifier) |
MAMAExpDLL mama_status | mamaStatsCollector_setName(mamaStatsCollector statsCollector, const char * name) |
MAMAExpDLL mama_status | mamaStatsCollector_setPublish(mamaStatsCollector statsCollector, int publish) |
MAMAExpDLL int | mamaStatsCollector_getPublish(mamaStatsCollector statsCollector) |
MAMAExpDLL mama_status | mamaStatsCollector_setLog(mamaStatsCollector statsCollector, int log) |
MAMAExpDLL int | mamaStatsCollector_getLog(mamaStatsCollector statsCollector) |
MAMAExpDLL const char * | mamaStatsCollectorType_stringForType(mamaStatsCollectorType type) |
Enumerator | Value | Description |
---|---|---|
MAMA_STATS_COLLECTOR_TYPE_QUEUE | 0 | |
MAMA_STATS_COLLECTOR_TYPE_TRANSPORT | 1 | |
MAMA_STATS_COLLECTOR_TYPE_USER | 2 | |
MAMA_STATS_COLLECTOR_TYPE_GLOBAL | 3 |
typedef enum mamaStatsCollectorType mamaStatsCollectorType;
MAMAExpDLL mama_status mamaStatsCollector_create(
mamaStatsCollector * statsCollector,
mamaStatsCollectorType type,
const char * name,
const char * middleware
)
Parameters:
Create a mamaStatsCollector object
MAMAExpDLL mama_status mamaStatsCollector_destroy(
mamaStatsCollector statsCollector
)
Parameters:
Destroy a mamaStatsCollector object
MAMAExpDLL mama_status mamaStatsCollector_addStat(
mamaStatsCollector statsCollector,
mamaStat stat
)
Parameters:
Register a stats object with the collector
MAMAExpDLL mama_status mamaStatsCollector_incrementStat(
mamaStatsCollector statsCollector,
mama_fid_t identifier
)
Parameters:
Increment the current interval value of the stat represented by FID identifier
MAMAExpDLL mama_status mamaStatsCollector_setName(
mamaStatsCollector statsCollector,
const char * name
)
Parameters:
Set the name of the stats collector object. By default, this will be the same as the associated queue, transport, or MAMA Application.
MAMAExpDLL mama_status mamaStatsCollector_setPublish(
mamaStatsCollector statsCollector,
int publish
)
Parameters:
Set whether or not stats for this stats collector object should be published in stats messages.
MAMAExpDLL int mamaStatsCollector_getPublish(
mamaStatsCollector statsCollector
)
Parameters:
Get whether or not stats are being published for this stats collector.
MAMAExpDLL mama_status mamaStatsCollector_setLog(
mamaStatsCollector statsCollector,
int log
)
Parameters:
Set whether or not stats for this stats collector object should be logged to the MAMA log.
MAMAExpDLL int mamaStatsCollector_getLog(
mamaStatsCollector statsCollector
)
Parameters:
Get whether or not stats are being logged for this stats collector.
MAMAExpDLL const char * mamaStatsCollectorType_stringForType(
mamaStatsCollectorType type
)
Parameters:
Return a string representation of a mamaStatsCollectorType
/* $Id$
*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef MamaStatsCollectorH__
#define MamaStatsCollectorH__
#include "mama/status.h"
#if defined(__cplusplus)
extern "C" {
#endif
typedef enum mamaStatsCollectorType
{
MAMA_STATS_COLLECTOR_TYPE_QUEUE = 0,
MAMA_STATS_COLLECTOR_TYPE_TRANSPORT = 1,
MAMA_STATS_COLLECTOR_TYPE_USER = 2,
MAMA_STATS_COLLECTOR_TYPE_GLOBAL = 3
} mamaStatsCollectorType;
MAMAExpDLL
extern mama_status
mamaStatsCollector_create (mamaStatsCollector* statsCollector, mamaStatsCollectorType type, const char* name, const char* middleware);
MAMAExpDLL
extern mama_status
mamaStatsCollector_destroy (mamaStatsCollector statsCollector);
MAMAExpDLL
extern mama_status
mamaStatsCollector_addStat (mamaStatsCollector statsCollector, mamaStat stat);
MAMAExpDLL
extern mama_status
mamaStatsCollector_incrementStat (mamaStatsCollector statsCollector, mama_fid_t identifier);
MAMAExpDLL
extern mama_status
mamaStatsCollector_setName (mamaStatsCollector statsCollector, const char* name);
MAMAExpDLL
extern mama_status
mamaStatsCollector_setPublish (mamaStatsCollector statsCollector, int publish);
MAMAExpDLL
extern int
mamaStatsCollector_getPublish (mamaStatsCollector statsCollector);
MAMAExpDLL
extern mama_status
mamaStatsCollector_setLog (mamaStatsCollector statsCollector, int log);
MAMAExpDLL
extern int
mamaStatsCollector_getLog (mamaStatsCollector statsCollector);
MAMAExpDLL
extern const char*
mamaStatsCollectorType_stringForType (mamaStatsCollectorType type);
#if defined(__cplusplus)
}
#endif
#endif /* MamaStatsCollectorH__ */
Updated on 2023-03-31 at 15:29:16 +0100