xorp

XrlJobQueue Class Reference

Class for buffering and dispatching XRLs. More...

#include <common.hh>

Inheritance diagram for XrlJobQueue:
ServiceBase BugCatcher

List of all members.

Public Types

typedef ref_ptr< XrlJobBaseJob

Public Member Functions

 XrlJobQueue (EventLoop &e, const string &finder_host, uint16_t finder_port, const string &tgtname)
 Xrl Job Queue.
int startup ()
 Start service.
int shutdown ()
 Shutdown service.
void dispatch_complete (const XrlError &xe, const XrlJobBase *cmd)
XrlSendersender ()
const string & target () const
void enqueue (const Job &cmd)

Protected Member Functions

bool xrl_router_ready_poll ()
void process_next_job ()

Protected Attributes

EventLoop_e
string _fhost
uint16_t _fport
string _tgt
list< Job_jobs
XrlStdRouter_rtr
XorpTimer _rtr_poll
uint32_t _rtr_poll_cnt

Detailed Description

Class for buffering and dispatching XRLs.


Member Function Documentation

int XrlJobQueue::shutdown ( ) [virtual]

Shutdown service.

Service should transition from SERVICE_RUNNING to SERVICE_SHUTTING_DOWN immediately and onto SERVICE_SHUTDOWN or SERVICE_FAILED in the near future.

Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements ServiceBase.

int XrlJobQueue::startup ( ) [virtual]

Start service.

Service should transition from SERVICE_READY to SERVICE_STARTING immediately and onto SERVICE_RUNNING or SERVICE_FAILED in the near future.

Returns:
XORP_OK on success, otherwise XORP_ERROR.

Implements ServiceBase.


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