OpenMAMA
statscollector.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * OpenMAMA: The open middleware agnostic messaging API
4  * Copyright (C) 2011 NYSE Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 
22 #ifndef MamaStatsCollectorH__
23 #define MamaStatsCollectorH__
24 
25 #include "mama/status.h"
26 
27 #if defined(__cplusplus)
28 extern "C" {
29 #endif
30 
32 {
38 
44 MAMAExpDLL
45 extern mama_status
46 mamaStatsCollector_create (mamaStatsCollector* statsCollector, mamaStatsCollectorType type, const char* name, const char* middleware);
47 
53 MAMAExpDLL
54 extern mama_status
56 
63 MAMAExpDLL
64 extern mama_status
66 
74 MAMAExpDLL
75 extern mama_status
77 
85 MAMAExpDLL
86 extern mama_status
87 mamaStatsCollector_setName (mamaStatsCollector statsCollector, const char* name);
88 
96 MAMAExpDLL
97 extern mama_status
98 mamaStatsCollector_setPublish (mamaStatsCollector statsCollector, int publish);
99 
105 MAMAExpDLL
106 extern int
108 
116 MAMAExpDLL
117 extern mama_status
118 mamaStatsCollector_setLog (mamaStatsCollector statsCollector, int log);
119 
125 MAMAExpDLL
126 extern int
128 
134 MAMAExpDLL
135 extern const char*
137 
138 #if defined(__cplusplus)
139 }
140 #endif
141 
142 #endif /* MamaStatsCollectorH__ */
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.


© 2012 Linux Foundation