|
EpcTools
An event based multi-threaded C++ development framework.
|
Represents an interface to track peer and message statistics for. More...
#include <estats.h>
Public Member Functions | |
| Interface (EStatistics::InterfaceId id, EStatistics::ProtocolType protocol, cpStr name) | |
| Class constructor. More... | |
| Interface (EStatistics::InterfaceId id, EStatistics::ProtocolType protocol, const EString &name) | |
| Class constructor. More... | |
| Interface (const Interface &i) | |
| Copy constructor. More... | |
| EStatistics::InterfaceId | getId () |
| Retrieves the interface ID. More... | |
| EString & | getName () |
| Retrieves the interface name. More... | |
| ProtocolType | getProtocol () |
| Retrieves the interface protocol. More... | |
| PeerMap & | getPeers () |
| Retrieves the collection of peers for this interface. More... | |
| Peer & | getPeer (const EString &peer, Bool addFlag=True) |
| Retrieves the specified peer with option to add if it does not exist. More... | |
| Peer & | addPeer (const EString &peer) |
| Adds the specified peer. More... | |
| Void | removePeer (const EString &peer) |
| Removes the specified peer. More... | |
| Void | reset () |
| Resets the message counters to zeroes for all peers. More... | |
| MessageStats & | addMessageStatsTemplate (EStatistics::MessageId msgid, const EString &name) |
| Adds a message to the statistics message template for this interface. More... | |
| MessageStatsMap & | getMessageStatsTemplate () |
| Retrieves the collection of message statistics. More... | |
| UInt | incRequestSentErrors (cpStr peer, UInt msgid) |
| Increments the request send errors for the specified peer and message. More... | |
| UInt | incRequestReceivedErrors (cpStr peer, UInt msgid) |
| Increments the request receive errors for the specified peer and message. More... | |
| UInt | incRequestSentOk (cpStr peer, UInt msgid) |
| Increments the request send successes for the specified peer and message. More... | |
| UInt | incRequestReceivedOk (cpStr peer, UInt msgid) |
| Increments the request receive successes for the specified peer and message. More... | |
| UInt | incResponseSentErrors (cpStr peer, UInt msgid) |
| Increments the response send errors for the specified peer and message. More... | |
| UInt | incResponseReceivedErrors (cpStr peer, UInt msgid) |
| Increments the response receive errors for the specified peer and message. More... | |
| UInt | incResponseSentOkAccepted (cpStr peer, UInt msgid) |
| Increments the response send success accepted for the specified peer and message. More... | |
| UInt | incResponseSentOkRejected (cpStr peer, UInt msgid) |
| Increments the response send success rejected for the specified peer and message. More... | |
| UInt | incResponseReceivedOkAccepted (cpStr peer, UInt msgid) |
| Increments the response receive success accepted for the specified peer and message. More... | |
| UInt | incResponseReceivedOkRejected (cpStr peer, UInt msgid) |
| Increments the response receive rejected accepted for the specified peer and message. More... | |
| UInt | incRequestSentErrors (const std::string &peer, UInt msgid) |
| Increments the request send errors for the specified peer and message. More... | |
| UInt | incRequestReceivedErrors (const std::string &peer, UInt msgid) |
| Increments the request receive errors for the specified peer and message. More... | |
| UInt | incRequestSentOk (const std::string &peer, UInt msgid) |
| Increments the request send successes for the specified peer and message. More... | |
| UInt | incRequestReceivedOk (const std::string &peer, UInt msgid) |
| Increments the request receive successes for the specified peer and message. More... | |
| UInt | incResponseSentErrors (const std::string &peer, UInt msgid) |
| Increments the response send errors for the specified peer and message. More... | |
| UInt | incResponseReceivedErrors (const std::string &peer, UInt msgid) |
| Increments the response receive errors for the specified peer and message. More... | |
| UInt | incResponseSentOkAccepted (const std::string &peer, UInt msgid) |
| Increments the response send success accepted for the specified peer and message. More... | |
| UInt | incResponseSentOkRejected (const std::string &peer, Int msgid) |
| Increments the response send success rejected for the specified peer and message. More... | |
| UInt | incResponseReceivedOkAccepted (const std::string &peer, UInt msgid) |
| Increments the response receive success accepted for the specified peer and message. More... | |
| UInt | incResponseReceivedOkRejected (const std::string &peer, UInt msgid) |
| Increments the response receive rejected accepted for the specified peer and message. More... | |
Represents an interface to track peer and message statistics for.
| EStatistics::Interface::Interface | ( | EStatistics::InterfaceId | id, |
| EStatistics::ProtocolType | protocol, | ||
| cpStr | name | ||
| ) |
Class constructor.
| id | the interface identifier. |
| protocol | the interface protocol. |
| name | the interface name. |
| EStatistics::Interface::Interface | ( | EStatistics::InterfaceId | id, |
| EStatistics::ProtocolType | protocol, | ||
| const EString & | name | ||
| ) |
Class constructor.
| id | the interface identifier. |
| protocol | the interface protocol. |
| name | the interface name. |
| EStatistics::Interface::Interface | ( | const Interface & | i | ) |
Copy constructor.
| i | the interface to copy. |
| EStatistics::MessageStats & EStatistics::Interface::addMessageStatsTemplate | ( | EStatistics::MessageId | msgid, |
| const EString & | name | ||
| ) |
Adds a message to the statistics message template for this interface.
| EStatistics::Peer & EStatistics::Interface::addPeer | ( | const EString & | peer | ) |
Adds the specified peer.
|
inline |
Retrieves the interface ID.
|
inline |
Retrieves the collection of message statistics.
|
inline |
Retrieves the interface name.
| EStatistics::Peer & EStatistics::Interface::getPeer | ( | const EString & | peer, |
| Bool | addFlag = True |
||
| ) |
Retrieves the specified peer with option to add if it does not exist.
|
inline |
Retrieves the collection of peers for this interface.
|
inline |
Retrieves the interface protocol.
|
inline |
Increments the request receive errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the request receive errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the request receive successes for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the request receive successes for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the request send errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the request send errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the request send successes for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the request send successes for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response receive errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response receive errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response receive success accepted for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response receive success accepted for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response receive rejected accepted for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response receive rejected accepted for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response send errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response send errors for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response send success accepted for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response send success accepted for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response send success rejected for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
|
inline |
Increments the response send success rejected for the specified peer and message.
| peer | the associated peer. |
| msgid | the associated message ID. |
| Void EStatistics::Interface::removePeer | ( | const EString & | peer | ) |
Removes the specified peer.
| Void EStatistics::Interface::reset | ( | ) |
Resets the message counters to zeroes for all peers.
1.8.16