#include <ResponseInfo.h>
Collaboration diagram for CODEX_Quorum::ResponseInfo:

Public Types | |
|
typedef map< unsigned int, bool > | ServerMap |
| Mapping from a server ID to the callback result. | |
Public Member Functions | |
| ResponseInfo (ResponseCallback *cb) | |
| Constructor. | |
| virtual | ~ResponseInfo () |
| Virtual destructor. | |
| void | add (unsigned int server, Message *msg) |
| This method checks an incoming response using the supplied callback, adding the server to the internal list of respondents. | |
| const ServerMap & | map () const |
| The internal map of responses. | |
| unsigned int | failures () const |
| The number of failed responses received. | |
| unsigned int | successes () const |
| The number of successful responses received. | |
| void | fail () |
| Trigger the callback's failure hook. | |
Definition at line 33 of file ResponseInfo.h.
|
|
Constructor.
Definition at line 45 of file ResponseInfo.h. |
|
||||||||||||
|
This method checks an incoming response using the supplied callback, adding the server to the internal list of respondents.
If the callback returns
Definition at line 28 of file ResponseInfo.cc. |
1.4.1