xorp

XrlFeaIo Class Reference

FEA (Forwarding Engine Abstraction) XRL-based I/O class. More...

#include <xrl_fea_io.hh>

Inheritance diagram for XrlFeaIo:
FeaIo

List of all members.

Public Member Functions

 XrlFeaIo (EventLoop &eventloop, XrlRouter &xrl_router, const string &xrl_finder_targetname)
 Constructor.
virtual ~XrlFeaIo ()
 Destructor.
int startup ()
 Startup the service operation.
int shutdown ()
 Shutdown the service operation.
bool is_running () const
 Test whether the service is running.
int register_instance_event_interest (const string &instance_name, string &error_msg)
 Register interest in events relating to a particular instance.
int deregister_instance_event_interest (const string &instance_name, string &error_msg)
 Deregister interest in events relating to a particular instance.

Private Member Functions

void register_instance_event_interest_cb (const XrlError &xrl_error, string instance_name)
void deregister_instance_event_interest_cb (const XrlError &xrl_error, string instance_name)

Private Attributes

XrlRouter_xrl_router
const string _xrl_finder_targetname

Detailed Description

FEA (Forwarding Engine Abstraction) XRL-based I/O class.


Constructor & Destructor Documentation

XrlFeaIo::XrlFeaIo ( EventLoop eventloop,
XrlRouter xrl_router,
const string &  xrl_finder_targetname 
)

Constructor.

Parameters:
eventloopthe event loop to use.
xrl_routerthe XRL transmission and reception point.
xrl_finder_targetnamethe XRL targetname of the Finder.

Member Function Documentation

int XrlFeaIo::deregister_instance_event_interest ( const string &  instance_name,
string &  error_msg 
) [virtual]

Deregister interest in events relating to a particular instance.

Parameters:
instance_namename of target instance to stop event notifications for.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FeaIo.

bool XrlFeaIo::is_running ( ) const

Test whether the service is running.

Returns:
true if the service is still running, otherwise false.

Reimplemented from FeaIo.

int XrlFeaIo::register_instance_event_interest ( const string &  instance_name,
string &  error_msg 
) [virtual]

Register interest in events relating to a particular instance.

Parameters:
instance_namename of target instance to receive event notifications for.
error_msgthe error message (if error).
Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements FeaIo.

int XrlFeaIo::shutdown ( )

Shutdown the service operation.

Returns:
XORP_OK on success, otherwise XORP_ERROR.

Reimplemented from FeaIo.

int XrlFeaIo::startup ( )

Startup the service operation.

Returns:
XORP_OK on success, otherwise XORP_ERROR.

Reimplemented from FeaIo.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations