EpcTools
An event based multi-threaded C++ development framework.
|
Contains the peer information including the statistics for the individual messages. More...
#include <estats.h>
Public Member Functions | |
Peer (cpStr name, const EStatistics::MessageStatsMap &tmplt) | |
Class constructor. More... | |
Peer (const EString &name, const EStatistics::MessageStatsMap &tmplt) | |
Class constructor. More... | |
Peer (const Peer &p) | |
Class constructor. More... | |
EStatistics::MessageStats & | getMessageStats (UInt msgid) |
Retrieves the statistics for a specific message. More... | |
EString & | getName () |
Retrieves the peer name. More... | |
ETime & | getLastActivity () |
Retrieves the time stamp of the last activity. More... | |
ETime & | setLastActivity () |
Assigns the time stamp of the last activity. More... | |
EStatistics::MessageStatsMap & | getMessageStats () |
Retrieves the message statistics collection for this peer. More... | |
Void | reset () |
Sets all message statistics counters to zero. More... | |
UInt | incRequestSentErrors (UInt msgid) |
Increments the request send errors for the specified message. More... | |
UInt | incRequestReceivedErrors (UInt msgid) |
Increments the request receive errors for the specified message. More... | |
UInt | incRequestSentOk (UInt msgid) |
Increments the request send successes for the specified message. More... | |
UInt | incRequestReceivedOk (UInt msgid) |
Increments the request receive successes for the specified message. More... | |
UInt | incResponseSentErrors (UInt msgid) |
Increments the response send errors for the specified message. More... | |
UInt | incResponseReceivedErrors (UInt msgid) |
Increments the response receive errors for the specified message. More... | |
UInt | incResponseSentOkAccepted (UInt msgid) |
Increments the response send success aceepted for the specified message. More... | |
UInt | incResponseSentOkRejected (UInt msgid) |
Increments the response send success rejected for the specified message. More... | |
UInt | incResponseReceivedOkAccepted (UInt msgid) |
Increments the response received success aceepted for the specified message. More... | |
UInt | incResponseReceivedOkRejected (UInt msgid) |
Increments the response received success rejected for the specified message. More... | |
Contains the peer information including the statistics for the individual messages.
EStatistics::Peer::Peer | ( | cpStr | name, |
const EStatistics::MessageStatsMap & | tmplt | ||
) |
Class constructor.
name | the peer name. |
tmplt | the list of messages to maintain statistics for. |
EStatistics::Peer::Peer | ( | const EString & | name, |
const EStatistics::MessageStatsMap & | tmplt | ||
) |
Class constructor.
name | the peer name. |
tmplt | the list of messages to maintain statistics for. |
|
inline |
Retrieves the time stamp of the last activity.
|
inline |
Retrieves the message statistics collection for this peer.
EStatistics::MessageStats & EStatistics::Peer::getMessageStats | ( | UInt | msgid | ) |
Retrieves the statistics for a specific message.
|
inline |
Retrieves the peer name.
|
inline |
Increments the request receive errors for the specified message.
msgid | the message identifier. |
|
inline |
Increments the request receive successes for the specified message.
msgid | the message identifier. |
|
inline |
Increments the request send errors for the specified message.
msgid | the message identifier. |
|
inline |
Increments the request send successes for the specified message.
msgid | the message identifier. |
|
inline |
Increments the response receive errors for the specified message.
msgid | the message identifier. |
|
inline |
Increments the response received success aceepted for the specified message.
msgid | the message identifier. |
|
inline |
Increments the response received success rejected for the specified message.
msgid | the message identifier. |
|
inline |
Increments the response send errors for the specified message.
msgid | the message identifier. |
|
inline |
Increments the response send success aceepted for the specified message.
msgid | the message identifier. |
|
inline |
Increments the response send success rejected for the specified message.
msgid | the message identifier. |
Void EStatistics::Peer::reset | ( | ) |
Sets all message statistics counters to zero.
|
inline |
Assigns the time stamp of the last activity.