B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Engine::StatisticsProvider Class Reference

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

#include <B2BITS_Statistics.h>

Public Types

typedef std::pair< ProtocolIndex, std::string > MsgProtocolTypeT
 Type definition for pair version protocol and message type.
 

Public Member Functions

System::u64 getAverageReceivedMsgHandling () const
 Calculates average handling time for all received messages.
 
System::u64 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, System::u64 > *averages) const
 Calculates average handling time of received messages for all passed message types.
 
System::u64 getAverageSendMsgHandling () const
 Calculates average handling time of sent messages for all messages.
 
System::u64 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, System::u64 > *averages) const
 Calculates average handling time of sent messages for all passed message types.
 
System::u64 getAverageValidationTime () const
 Calculates average validation time for all messages.
 
System::u64 getAverageValidationTimeByType (const MsgProtocolTypeT &msgType) const
 Calculates average validation time for passed message type.
 
void getAverageValidationTimeByTypes (const std::set< MsgProtocolTypeT > &types, std::map< MsgProtocolTypeT, System::u64 > *averages) const
 Calculates average validation time for all passed message types.
 
std::size_t getProceedMsgCount () const
 Calculates total proceed message amount.
 
std::size_t getReceivedMsgCount () const
 Calculates received message amount.
 
std::size_t getSentMsgCount () const
 Calculates sent message amount.
 
bool getSessionState (const SessionId &sessionId, Session::State *state) const
 Returns state of the session

 
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.

Member Typedef Documentation

◆ MsgProtocolTypeT

Type definition for pair version protocol and message type.

Member Function Documentation

◆ getAverageReceivedMsgHandling()

System::u64 Engine::StatisticsProvider::getAverageReceivedMsgHandling ( ) const

Calculates average handling time for all received messages.

Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageReceivedMsgHandlingByType()

System::u64 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
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageReceivedMsgHandlingByTypes()

void Engine::StatisticsProvider::getAverageReceivedMsgHandlingByTypes ( const std::set< MsgProtocolTypeT > & types,
std::map< MsgProtocolTypeT, System::u64 > * 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
[out]averages- contains MsgProtocolTypeT => 0 map
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageSendMsgHandling()

System::u64 Engine::StatisticsProvider::getAverageSendMsgHandling ( ) const

Calculates average handling time of sent messages for all messages.

Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageSendMsgHandlingByType()

System::u64 Engine::StatisticsProvider::getAverageSendMsgHandlingByType ( const MsgProtocolTypeT & msgType) const

Calculates average handling time of sent messages for passed message.

Parameters
msgType- type of the message
Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageSendMsgHandlingByTypes()

void Engine::StatisticsProvider::getAverageSendMsgHandlingByTypes ( const std::set< MsgProtocolTypeT > & types,
std::map< MsgProtocolTypeT, System::u64 > * 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
[out]averages- contains MsgProtocolTypeT => 0 map
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageValidationTime()

System::u64 Engine::StatisticsProvider::getAverageValidationTime ( ) const

Calculates average validation time for all messages.

Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageValidationTimeByType()

System::u64 Engine::StatisticsProvider::getAverageValidationTimeByType ( const MsgProtocolTypeT & msgType) const

Calculates average validation time for passed message type.

Parameters
msgType- type of the message
Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getAverageValidationTimeByTypes()

void Engine::StatisticsProvider::getAverageValidationTimeByTypes ( const std::set< MsgProtocolTypeT > & types,
std::map< MsgProtocolTypeT, System::u64 > * 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 MsgProtocolTypeT => 0 map
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getProceedMsgCount()

std::size_t Engine::StatisticsProvider::getProceedMsgCount ( ) const

Calculates total proceed message amount.

Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getReceivedMsgCount()

std::size_t Engine::StatisticsProvider::getReceivedMsgCount ( ) const

Calculates received message amount.

Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getSentMsgCount()

std::size_t Engine::StatisticsProvider::getSentMsgCount ( ) const

Calculates sent message amount.

Returns
0
Deprecated
Switched off by performance reasons. Still present for compatibility.

◆ getSessionState() [1/2]

bool Engine::StatisticsProvider::getSessionState ( const SessionId & sessionId,
Session::State * state ) const

Returns state of the session

◆ getSessionState() [2/2]

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

Returns state of the session