Name | |
---|---|
enum | mamaStatType { MAMA_STAT_TYPE_INITIALS = 105, MAMA_STAT_TYPE_RECAPS = 106, MAMA_STAT_TYPE_NUM_MESSAGES = 107, MAMA_STAT_TYPE_FT_TAKEOVERS = 108, MAMA_STAT_TYPE_QUEUE_SIZE = 109, MAMA_STAT_TYPE_SUBSCRIPTIONS = 110, MAMA_STAT_TYPE_TIMEOUTS = 111, MAMA_STAT_TYPE_MSG_INDEX = 112, MAMA_STAT_TYPE_NAK_PACKETS_SENT = 113, MAMA_STAT_TYPE_NAKS_SENT = 114, MAMA_STAT_TYPE_MSGS_LOST = 115, MAMA_STAT_TYPE_NCFS_IGNORE = 116, MAMA_STAT_TYPE_NCFS_SHED = 117, MAMA_STAT_TYPE_NCFS_RX_DELAY = 118, MAMA_STAT_TYPE_NCFS_UNKNOWN = 119, MAMA_STAT_TYPE_DUPLICATE_MSGS = 120, MAMA_STAT_TYPE_UNRECOVERABLE_WINDOW_ADVANCE = 121, MAMA_STAT_TYPE_UNRECOVERABLE_TIMEOUT = 122, MAMA_STAT_TYPE_LBM_MSGS_RECEIVED_NO_TOPIC = 123, MAMA_STAT_TYPE_LBM_REQUESTS_RECEIVED = 124, MAMA_STAT_TYPE_WOMBAT_MSGS = 125, MAMA_STAT_TYPE_RV_MSGS = 126, MAMA_STAT_TYPE_FAST_MSGS = 127, MAMA_STAT_TYPE_UNKNOWN_MSGS = 128, MAMA_STAT_TYPE_PUBLISHER_SEND = 129, MAMA_STAT_TYPE_PUBLISHER_INBOX_SEND = 130, MAMA_STAT_TYPE_PUBLISHER_REPLY_SEND = 131, MAMA_STAT_TYPE_UNKNOWN = 999} |
typedef enum mamaStatType | mamaStatType |
Name | |
---|---|
MAMAExpDLL mama_status | mamaStat_create(mamaStat * stat, mamaStatsCollector collector, int lockable, const char * name, mama_fid_t type) |
MAMAExpDLL mama_status | mamaStat_destroy(mamaStat stat) |
MAMAExpDLL mama_status | mamaStat_increment(mamaStat stat) |
MAMAExpDLL mama_status | mamaStat_decrement(mamaStat stat) |
MAMAExpDLL mama_status | mamaStat_reset(mamaStat stat) |
MAMAExpDLL mama_status | mamaStat_add(mamaStat stat, int value) |
MAMAExpDLL mama_status | mamaStat_subtract(mamaStat stat, int value) |
MAMAExpDLL mama_status | mamaStat_setIntervalValue(mamaStat stat, int value) |
MAMAExpDLL mama_fid_t | mamaStat_getFid(mamaStat stat) |
MAMAExpDLL int | mamaStat_getIntervalValue(mamaStat stat) |
MAMAExpDLL int | mamaStat_getMaxValue(mamaStat stat) |
MAMAExpDLL int | mamaStat_getTotalValue(mamaStat stat) |
MAMAExpDLL void | mamaStat_getStats(mamaStat stat, mama_i32_t * intervalValue, mama_u32_t * maxValue, mama_u32_t * totalValue) |
MAMAExpDLL const char * | mamaStat_getName(mamaStat stat) |
MAMAExpDLL mama_status | mamaStat_setLog(mamaStat stat, int log) |
MAMAExpDLL int | mamaStat_getLog(mamaStat stat) |
MAMAExpDLL mama_status | mamaStat_setPublish(mamaStat stat, int publish) |
MAMAExpDLL int | mamaStat_getPublish(mamaStat stat) |
MAMAExpDLL mamaStatType | mamaStatType_fromString(const char * statTypeString) |
MAMAExpDLL const char * | mamaStatType_toString(mamaStatType statType) |
Name | |
---|---|
MAMA_STAT_NOT_LOCKABLE | |
MAMA_STAT_LOCKABLE |
Enumerator | Value | Description |
---|---|---|
MAMA_STAT_TYPE_INITIALS | 105 | |
MAMA_STAT_TYPE_RECAPS | 106 | |
MAMA_STAT_TYPE_NUM_MESSAGES | 107 | |
MAMA_STAT_TYPE_FT_TAKEOVERS | 108 | |
MAMA_STAT_TYPE_QUEUE_SIZE | 109 | |
MAMA_STAT_TYPE_SUBSCRIPTIONS | 110 | |
MAMA_STAT_TYPE_TIMEOUTS | 111 | |
MAMA_STAT_TYPE_MSG_INDEX | 112 | |
MAMA_STAT_TYPE_NAK_PACKETS_SENT | 113 | |
MAMA_STAT_TYPE_NAKS_SENT | 114 | |
MAMA_STAT_TYPE_MSGS_LOST | 115 | |
MAMA_STAT_TYPE_NCFS_IGNORE | 116 | |
MAMA_STAT_TYPE_NCFS_SHED | 117 | |
MAMA_STAT_TYPE_NCFS_RX_DELAY | 118 | |
MAMA_STAT_TYPE_NCFS_UNKNOWN | 119 | |
MAMA_STAT_TYPE_DUPLICATE_MSGS | 120 | |
MAMA_STAT_TYPE_UNRECOVERABLE_WINDOW_ADVANCE | 121 | |
MAMA_STAT_TYPE_UNRECOVERABLE_TIMEOUT | 122 | |
MAMA_STAT_TYPE_LBM_MSGS_RECEIVED_NO_TOPIC | 123 | |
MAMA_STAT_TYPE_LBM_REQUESTS_RECEIVED | 124 | |
MAMA_STAT_TYPE_WOMBAT_MSGS | 125 | |
MAMA_STAT_TYPE_RV_MSGS | 126 | |
MAMA_STAT_TYPE_FAST_MSGS | 127 | |
MAMA_STAT_TYPE_UNKNOWN_MSGS | 128 | |
MAMA_STAT_TYPE_PUBLISHER_SEND | 129 | |
MAMA_STAT_TYPE_PUBLISHER_INBOX_SEND | 130 | |
MAMA_STAT_TYPE_PUBLISHER_REPLY_SEND | 131 | |
MAMA_STAT_TYPE_UNKNOWN | 999 |
typedef enum mamaStatType mamaStatType;
MAMAExpDLL mama_status mamaStat_create(
mamaStat * stat,
mamaStatsCollector collector,
int lockable,
const char * name,
mama_fid_t type
)
Parameters:
Create a mamaStats object
MAMAExpDLL mama_status mamaStat_destroy(
mamaStat stat
)
Parameters:
Destroy a mamaStats object
MAMAExpDLL mama_status mamaStat_increment(
mamaStat stat
)
Parameters:
Increment the stats object counter
MAMAExpDLL mama_status mamaStat_decrement(
mamaStat stat
)
Parameters:
Decrement the stats object counter
MAMAExpDLL mama_status mamaStat_reset(
mamaStat stat
)
Parameters:
Reset the stats object counter
MAMAExpDLL mama_status mamaStat_add(
mamaStat stat,
int value
)
Parameters:
Adds the stats object counter with the value
MAMAExpDLL mama_status mamaStat_subtract(
mamaStat stat,
int value
)
Parameters:
Subtract the stats object counter with the value
MAMAExpDLL mama_status mamaStat_setIntervalValue(
mamaStat stat,
int value
)
Parameters:
set the Interval value
MAMAExpDLL mama_fid_t mamaStat_getFid(
mamaStat stat
)
Parameters:
Get the FID used when publishing the stat via the stats logger
MAMAExpDLL int mamaStat_getIntervalValue(
mamaStat stat
)
Parameters:
Get the value of the stat for the current interval
MAMAExpDLL int mamaStat_getMaxValue(
mamaStat stat
)
Parameters:
Get the maximum value of the stat
MAMAExpDLL int mamaStat_getTotalValue(
mamaStat stat
)
Parameters:
Get the total value of the stat
MAMAExpDLL void mamaStat_getStats(
mamaStat stat,
mama_i32_t * intervalValue,
mama_u32_t * maxValue,
mama_u32_t * totalValue
)
Parameters:
Get the interval, maximum, and total values for the stat
MAMAExpDLL const char * mamaStat_getName(
mamaStat stat
)
Parameters:
Get the name of the stat
MAMAExpDLL mama_status mamaStat_setLog(
mamaStat stat,
int log
)
Parameters:
Set whether or not this stat should be logged in the MAMA log.
MAMAExpDLL int mamaStat_getLog(
mamaStat stat
)
Parameters:
Returns whether or not the stat is currently being logged to the MAMA log.
MAMAExpDLL mama_status mamaStat_setPublish(
mamaStat stat,
int publish
)
Set whether or not to publish this stat.
@parameter stat The stat object to set publishing for @paramter publish Whether or not to publish the stat
MAMAExpDLL int mamaStat_getPublish(
mamaStat stat
)
Parameters:
Returns whether or not the stat is currently being published.
MAMAExpDLL mamaStatType mamaStatType_fromString(
const char * statTypeString
)
Parameters:
Returns a mamaStatType from a string.
MAMAExpDLL const char * mamaStatType_toString(
mamaStatType statType
)
Parameters:
Returns a string representation of a mamaStatType.
#define MAMA_STAT_NOT_LOCKABLE 0
#define MAMA_STAT_LOCKABLE 1
/* $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 MamaStatsH__
#define MamaStatsH__
#include "mama/status.h"
#if defined(__cplusplus)
extern "C" {
#endif
#define MAMA_STAT_NOT_LOCKABLE 0
#define MAMA_STAT_LOCKABLE 1
typedef enum mamaStatType
{
MAMA_STAT_TYPE_INITIALS = 105,
MAMA_STAT_TYPE_RECAPS = 106,
MAMA_STAT_TYPE_NUM_MESSAGES = 107,
MAMA_STAT_TYPE_FT_TAKEOVERS = 108,
MAMA_STAT_TYPE_QUEUE_SIZE = 109,
MAMA_STAT_TYPE_SUBSCRIPTIONS = 110,
MAMA_STAT_TYPE_TIMEOUTS = 111,
MAMA_STAT_TYPE_MSG_INDEX = 112,
MAMA_STAT_TYPE_NAK_PACKETS_SENT = 113,
MAMA_STAT_TYPE_NAKS_SENT = 114,
MAMA_STAT_TYPE_MSGS_LOST = 115,
MAMA_STAT_TYPE_NCFS_IGNORE = 116,
MAMA_STAT_TYPE_NCFS_SHED = 117,
MAMA_STAT_TYPE_NCFS_RX_DELAY = 118,
MAMA_STAT_TYPE_NCFS_UNKNOWN = 119,
MAMA_STAT_TYPE_DUPLICATE_MSGS = 120,
MAMA_STAT_TYPE_UNRECOVERABLE_WINDOW_ADVANCE = 121,
MAMA_STAT_TYPE_UNRECOVERABLE_TIMEOUT = 122,
MAMA_STAT_TYPE_LBM_MSGS_RECEIVED_NO_TOPIC = 123,
MAMA_STAT_TYPE_LBM_REQUESTS_RECEIVED = 124,
MAMA_STAT_TYPE_WOMBAT_MSGS = 125,
MAMA_STAT_TYPE_RV_MSGS = 126,
MAMA_STAT_TYPE_FAST_MSGS = 127,
MAMA_STAT_TYPE_UNKNOWN_MSGS = 128,
MAMA_STAT_TYPE_PUBLISHER_SEND = 129,
MAMA_STAT_TYPE_PUBLISHER_INBOX_SEND = 130,
MAMA_STAT_TYPE_PUBLISHER_REPLY_SEND = 131,
MAMA_STAT_TYPE_UNKNOWN = 999
}mamaStatType;
MAMAExpDLL
extern mama_status
mamaStat_create (mamaStat* stat, mamaStatsCollector collector, int lockable, const char* name, mama_fid_t type);
MAMAExpDLL
extern mama_status
mamaStat_destroy (mamaStat stat);
MAMAExpDLL
extern mama_status
mamaStat_increment (mamaStat stat);
MAMAExpDLL
extern mama_status
mamaStat_decrement (mamaStat stat);
MAMAExpDLL
extern mama_status
mamaStat_reset (mamaStat stat);
MAMAExpDLL
extern mama_status
mamaStat_add (mamaStat stat, int value);
MAMAExpDLL
extern mama_status
mamaStat_subtract (mamaStat stat, int value);
MAMAExpDLL
extern mama_status
mamaStat_setIntervalValue (mamaStat stat, int value);
MAMAExpDLL
extern mama_fid_t
mamaStat_getFid (mamaStat stat);
MAMAExpDLL
extern int
mamaStat_getIntervalValue (mamaStat stat);
MAMAExpDLL
extern int
mamaStat_getMaxValue (mamaStat stat);
MAMAExpDLL
extern int
mamaStat_getTotalValue (mamaStat stat);
MAMAExpDLL
extern void
mamaStat_getStats (mamaStat stat, mama_i32_t* intervalValue, mama_u32_t* maxValue, mama_u32_t* totalValue);
MAMAExpDLL
extern const char*
mamaStat_getName (mamaStat stat);
MAMAExpDLL
extern mama_status
mamaStat_setLog (mamaStat stat, int log);
MAMAExpDLL
extern int
mamaStat_getLog (mamaStat stat);
MAMAExpDLL
extern mama_status
mamaStat_setPublish (mamaStat stat, int publish);
MAMAExpDLL
extern int
mamaStat_getPublish (mamaStat stat);
MAMAExpDLL
extern mamaStatType
mamaStatType_fromString (const char* statTypeString);
MAMAExpDLL
extern const char*
mamaStatType_toString (mamaStatType statType);
#if defined(__cplusplus)
}
#endif
#endif /* MamaStatsH__ */
Updated on 2023-03-31 at 15:29:16 +0100