#include <ResponseTracker.h>
Inheritance diagram for CODEX_Quorum::ConcreteResponseTracker< ST, MT >:
Public Types | |
|
typedef map< const unsigned char *, ResponseInfo *, memless< MT > > | MessageResponseMap |
| Internally stored data type. | |
| typedef MessageResponseMap::iterator | MessageResponseMapItr |
| Iterator into a MessageResponseMap. | |
Public Member Functions | |
| ConcreteResponseTracker (unsigned char *self) | |
| Constructor. | |
| virtual | ~ConcreteResponseTracker () |
| Virtual destructor. | |
| void | insert (unsigned char *key, ResponseInfo *m) |
| Attach a map of Message%s (keyed by server ID) with request identifier key. | |
| bool | remove (const unsigned char *key, bool del=false) |
| Remove the map of Message%s with request identifier key. | |
| bool | check (const unsigned char *data, int length, unsigned int server) |
| Check if the incoming data is a response to a registered request. | |
| ResponseInfo * | operator() (const unsigned char *msgID) |
Pointer to the ResponseInfo corresponding to the specified message ID, or 0 if the ID isn't found. | |
| unsigned char * | extractKey (const unsigned char *data) |
| Helper routine to extract the key (message ID) from an incoming or outgoing message. | |
The application writer is responsible for ensuring that messages begin with a fixed-length originating server ID followed by a message identifier. Both must be specified to be in whole numbers of bytes.
Definition at line 109 of file ResponseTracker.h.
|
||||||||||
|
Constructor.
Definition at line 122 of file ResponseTracker.h. |
|
||||||||||||||||||||
|
Check if the incoming data is a response to a registered request. If so, the data is added to the corresponding MessageVector. Ownership of the data is kept by the calling routine.
Implements CODEX_Quorum::ResponseTracker. Definition at line 160 of file ResponseTracker.h. References CODEX_Quorum::Message::fill(). |
|
||||||||||
|
Helper routine to extract the key (message ID) from an incoming or outgoing message.
Implements CODEX_Quorum::ResponseTracker. Definition at line 190 of file ResponseTracker.h. |
|
||||||||||||||||
|
Attach a map of Message%s (keyed by server ID) with request identifier key. Ownership of the arguments is taken by the object. Implements CODEX_Quorum::ResponseTracker. Definition at line 139 of file ResponseTracker.h. |
|
||||||||||||||||
|
Remove the map of Message%s with request identifier key.
Implements CODEX_Quorum::ResponseTracker. Definition at line 143 of file ResponseTracker.h. |
1.4.1