Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
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
31
typedef
enum
mamaStatsCollectorType
32
{
33
MAMA_STATS_COLLECTOR_TYPE_QUEUE
= 0,
34
MAMA_STATS_COLLECTOR_TYPE_TRANSPORT
= 1,
35
MAMA_STATS_COLLECTOR_TYPE_USER
= 2,
36
MAMA_STATS_COLLECTOR_TYPE_GLOBAL
= 3
37
}
mamaStatsCollectorType
;
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
55
mamaStatsCollector_destroy
(
mamaStatsCollector
statsCollector);
56
63
MAMAExpDLL
64
extern
mama_status
65
mamaStatsCollector_addStat
(
mamaStatsCollector
statsCollector,
mamaStat
stat);
66
74
MAMAExpDLL
75
extern
mama_status
76
mamaStatsCollector_incrementStat
(
mamaStatsCollector
statsCollector,
mama_fid_t
identifier);
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
107
mamaStatsCollector_getPublish
(
mamaStatsCollector
statsCollector);
108
116
MAMAExpDLL
117
extern
mama_status
118
mamaStatsCollector_setLog
(
mamaStatsCollector
statsCollector,
int
log);
119
125
MAMAExpDLL
126
extern
int
127
mamaStatsCollector_getLog
(
mamaStatsCollector
statsCollector);
128
134
MAMAExpDLL
135
extern
const
char
*
136
mamaStatsCollectorType_stringForType
(
mamaStatsCollectorType
type);
137
138
#if defined(__cplusplus)
139
}
140
#endif
141
142
#endif
/* MamaStatsCollectorH__ */
© 2012 Linux Foundation