|
|
The VarMap will register interest in protocols for known protocols with the ProcessWatch. The ProcessWatch will then register this interest with the finder.
Very similar / identical to BGP's process watch.
PWException (class) | PWException |
ProcessWatch (XrlStdRouter& rtr)
| ProcessWatch |
Parameters:
rtr | Xrl router to use. |
void register_cb (const XrlError& err)
| register_cb |
Callback for all Xrl calls.
Parameters:
err | possible Xrl error. |
void add_interest (const string& proc)
| add_interest |
Add an interest in a protocol.
Parameters:
proc | process of the protocol to add interest for. |
Reimplemented from ProcessWatchBase.
void birth (const string& proto)
| birth |
Announce birth of a protocol [process].
Parameters:
proto | protocol that came to life. |
void death (const string& proto)
| death |
Announce death of a protocol.
Parameters:
proto | protocol that died. |
bool alive (const string& proto)
| alive |
An exception is thrown if the process watch is not watching the requested protocol.
Parameters:
proto | protocol for which status is requested. |
Returns: true if protocol is alive, false otherwise.
void set_notifier (PWNotifier& notifier)
| set_notifier |
Set an object which will receive birth/death notifications.
If a previous object was "registered", it will be removed. Only one object may receive notifications.
Parameters:
notifier | object where notifications should be sent. |