xorp

XrlFeaNode Class Reference

FEA (Forwarding Engine Abstraction) node class with XRL front-end. More...

#include <xrl_fea_node.hh>

List of all members.

Public Member Functions

 XrlFeaNode (EventLoop &eventloop, const string &xrl_fea_targetname, const string &xrl_finder_targetname, const string &finder_hostname, uint16_t finder_port, bool is_dummy)
 Constructor.
virtual ~XrlFeaNode ()
 Destructor.
int startup ()
 Startup the service operation.
int shutdown ()
 Shutdown the service operation.
bool is_running () const
 Test whether the service is running.
bool is_shutdown_received () const
 Test whether a shutdown XRL request has been received.
EventLoopeventloop ()
 Get the event loop this service is added to.
XrlStdRouterxrl_router ()
 Get the XRL transmission and reception point.
XrlFeaIoxrl_fea_io ()
 Get the FEA I/O XRL instance.
FeaNodefea_node ()
 Get the FEA node instance.
XrlFeaTargetxrl_fea_target ()
 Get the FEA XRL target.
const string & xrl_finder_targetname () const
 Get the Finder's XRL target name.

Private Attributes

EventLoop_eventloop
XrlStdRouter _xrl_router
XrlFeaIo _xrl_fea_io
FeaNode _fea_node
LibFeaClientBridge _lib_fea_client_bridge
XrlFibClientManager _xrl_fib_client_manager
XrlIoLinkManager _xrl_io_link_manager
XrlIoIpManager _xrl_io_ip_manager
XrlIoTcpUdpManager _xrl_io_tcpudp_manager
CliNode _cli_node4
XrlCliNode _xrl_cli_node
XrlMfeaNode _xrl_mfea_node4
XrlFeaTarget _xrl_fea_target
const string _xrl_finder_targetname

Detailed Description

FEA (Forwarding Engine Abstraction) node class with XRL front-end.

There should be one node per FEA instance.


Constructor & Destructor Documentation

XrlFeaNode::XrlFeaNode ( EventLoop eventloop,
const string &  xrl_fea_targetname,
const string &  xrl_finder_targetname,
const string &  finder_hostname,
uint16_t  finder_port,
bool  is_dummy 
)

Constructor.

Parameters:
eventloopthe event loop to use.
xrl_fea_targetnamethe XRL targetname of the FEA.
xrl_finder_targetnamethe XRL targetname of the Finder.
finder_hostnamethe XRL Finder hostname.
finder_portthe XRL Finder port.
is_dummyif true, then run the FEA in dummy mode.

Member Function Documentation

EventLoop& XrlFeaNode::eventloop ( ) [inline]

Get the event loop this service is added to.

Returns:
the event loop this service is added to.
FeaNode& XrlFeaNode::fea_node ( ) [inline]

Get the FEA node instance.

Returns:
reference to the FEA node instance.
bool XrlFeaNode::is_running ( ) const

Test whether the service is running.

Returns:
true if the service is still running, otherwise false.
bool XrlFeaNode::is_shutdown_received ( ) const

Test whether a shutdown XRL request has been received.

Returns:
true if shutdown XRL request has been received, otherwise false.
int XrlFeaNode::shutdown ( )

Shutdown the service operation.

Gracefully shutdown the FEA.

Returns:
XORP_OK on success, otherwise XORP_ERROR.
int XrlFeaNode::startup ( )

Startup the service operation.

Returns:
XORP_OK on success, otherwise XORP_ERROR.
XrlFeaIo& XrlFeaNode::xrl_fea_io ( ) [inline]

Get the FEA I/O XRL instance.

Returns:
reference to the FEA I/O XRL instance.
XrlFeaTarget& XrlFeaNode::xrl_fea_target ( ) [inline]

Get the FEA XRL target.

Returns:
reference to the FEA XRL target.
const string& XrlFeaNode::xrl_finder_targetname ( ) const [inline]

Get the Finder's XRL target name.

Returns:
the Finder's XRL target name.
XrlStdRouter& XrlFeaNode::xrl_router ( ) [inline]

Get the XRL transmission and reception point.

Returns:
reference to the XRL transmission and reception point.

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