Public Types | Public Member Functions

Engine::StatisticsProvider Class Reference

Provides detailed statistics about the current state of the FIX Engine. More...

#include <B2BITS_Statistics.h>

List of all members.

Public Types

typedef std::pair< FIXVersion,
std::string > 
MsgProtocolTypeT
 Typedefinition for pair version protocol and message type.

Public Member Functions

Long getAverageReceivedMsgHandling () const
 Calculates average handling time for all received messages.
Long getAverageReceivedMsgHandlingByType (const MsgProtocolTypeT &msgType) const
 Calculates average handling time of received messages for passed message type.
void getAverageReceivedMsgHandlingByTypes (const std::set< MsgProtocolTypeT > &types, std::map< MsgProtocolTypeT, Long > *averages) const
 Calculates average handling time of received messages for all passed message types.
Long getAverageSendMsgHandling () const
 Calculates average handling time of sent messages for all messages.
Long getAverageSendMsgHandlingByType (const MsgProtocolTypeT &msgType) const
 Calculates average handling time of sent messages for passed message.
void getAverageSendMsgHandlingByTypes (const std::set< MsgProtocolTypeT > &types, std::map< MsgProtocolTypeT, Long > *averages) const
 Calculates average handling time of sent messages for all passed message types.
Long getAverageValidationTime () const
 Calculates average validation time for all messages.
Long getAverageValidationTimeByType (const MsgProtocolTypeT &msgType) const
 Calculates average validation time for passed message type.
void getAverageValidationTimeByTypes (const std::set< MsgProtocolTypeT > &types, std::map< MsgProtocolTypeT, Long > *averages) const
 Calculates average validation time for all passed message types.
size_t getProceedMsgCount () const
 Returns total proceed message amount.
size_t getReceivedMsgCount () const
 Returns received message amount.
size_t getSentMsgCount () const
 Returns sent message amount.
bool getSessionState (const std::string &sender, const std::string &target, Session::State *state) const
 Returns state of the session.

Detailed Description

Provides detailed statistics about the current state of the FIX Engine.

Definition at line 64 of file B2BITS_Statistics.h.


Member Typedef Documentation

Typedefinition for pair version protocol and message type.

Definition at line 70 of file B2BITS_Statistics.h.


Member Function Documentation

Long Engine::StatisticsProvider::getAverageReceivedMsgHandling (  ) const

Calculates average handling time for all received messages.

Returns time in microseconds

Long Engine::StatisticsProvider::getAverageReceivedMsgHandlingByType ( const MsgProtocolTypeT msgType ) const

Calculates average handling time of received messages for passed message type.

Parameters:
msgType- type of the message
Returns:
time in microseconds.
void Engine::StatisticsProvider::getAverageReceivedMsgHandlingByTypes ( const std::set< MsgProtocolTypeT > &  types,
std::map< MsgProtocolTypeT, Long > *  averages 
) const

Calculates average handling time of received messages for all passed message types.

Parameters:
types- contains set of types that handling time will be evaluated
averages- contains evaluated average handling time (in microseconds)
Long Engine::StatisticsProvider::getAverageSendMsgHandling (  ) const

Calculates average handling time of sent messages for all messages.

Returns time in microseconds

Long Engine::StatisticsProvider::getAverageSendMsgHandlingByType ( const MsgProtocolTypeT msgType ) const

Calculates average handling time of sent messages for passed message.

Parameters:
msgType- type of the message
Returns:
time in microseconds
void Engine::StatisticsProvider::getAverageSendMsgHandlingByTypes ( const std::set< MsgProtocolTypeT > &  types,
std::map< MsgProtocolTypeT, Long > *  averages 
) const

Calculates average handling time of sent messages for all passed message types.

Parameters:
types- contains set of types that handling time will be evaluated
averages- contains evaluated average handling time (in microseconds)
Long Engine::StatisticsProvider::getAverageValidationTime (  ) const

Calculates average validation time for all messages.

Returns time in microseconds

Long Engine::StatisticsProvider::getAverageValidationTimeByType ( const MsgProtocolTypeT msgType ) const

Calculates average validation time for passed message type.

Parameters:
msgType- type of the message
Returns:
validation time in microseconds
void Engine::StatisticsProvider::getAverageValidationTimeByTypes ( const std::set< MsgProtocolTypeT > &  types,
std::map< MsgProtocolTypeT, Long > *  averages 
) const

Calculates average validation time for all passed message types.

Parameters:
types- contains set of types that handling time will be evaluated
averages- contains evaluated average handling time (in microseconds)
size_t Engine::StatisticsProvider::getProceedMsgCount (  ) const

Returns total proceed message amount.

size_t Engine::StatisticsProvider::getReceivedMsgCount (  ) const

Returns received message amount.

size_t Engine::StatisticsProvider::getSentMsgCount (  ) const

Returns sent message amount.

bool Engine::StatisticsProvider::getSessionState ( const std::string &  sender,
const std::string &  target,
Session::State state 
) const

Returns state of the session.