class ProcessWatch

Keeps track of which XORP processes of interest are alive. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

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, ProtocolMap& pmap)

ProcessWatch

Parameters:

rtrXrl router to use.
pmapprotocol map.
void  register_cb (const XrlError& err)

register_cb

Callback for all Xrl calls.

Parameters:

errpossible Xrl error.
void  add_interest (const string& proc)

add_interest

Add an interest in a protocol.

Parameters:

procprocess of the protocol to add interest for.

Reimplemented from ProcessWatchBase.

void  birth (const string& proto)

birth

Announce birth of a protocol [process].

Parameters:

protoprotocol that came to life.
void  death (const string& proto)

death

Announce death of a protocol.

Parameters:

protoprotocol that died.
bool  alive (const string& proto)

alive

An exception is thrown if the process watch is not watching the requested protocol.

Parameters:

protoprotocol 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:

notifierobject where notifications should be sent.

Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:02 2009, using kdoc 2.0a54+XORP.