OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FlowEventQueue Class Reference

#include <flow_event.h>

Inheritance diagram for FlowEventQueue:
Collaboration diagram for FlowEventQueue:

Public Member Functions

 FlowEventQueue (Agent *agent, FlowProto *proto, FlowTable *table, FlowTokenPool *pool, uint16_t latency_limit, uint32_t max_iterations)
 
virtual ~FlowEventQueue ()
 
bool HandleEvent (FlowEvent *event)
 
- Public Member Functions inherited from FlowEventQueueBase
 FlowEventQueueBase (FlowProto *proto, const std::string &name, uint32_t task_id, int task_instance, FlowTokenPool *pool, uint16_t latency_limit, uint32_t max_iterations)
 
virtual ~FlowEventQueueBase ()
 
virtual bool Handler (FlowEvent *event)
 
void Shutdown ()
 
void Enqueue (FlowEvent *event)
 
bool TokenCheck ()
 
bool TaskEntry ()
 
void TaskExit (bool done)
 
void set_disable (bool val)
 
uint32_t Length ()
 
void MayBeStartRunner ()
 
Queuequeue () const
 
uint64_t events_processed () const
 
uint64_t events_enqueued () const
 

Private Attributes

FlowTableflow_table_
 

Additional Inherited Members

- Public Types inherited from FlowEventQueueBase
typedef WorkQueue< FlowEvent * > Queue
 
- Protected Member Functions inherited from FlowEventQueueBase
bool CanEnqueue (FlowEvent *event)
 
bool CanProcess (FlowEvent *event)
 
void ProcessDone (FlowEvent *event, bool update_rev_flow)
 
- Protected Attributes inherited from FlowEventQueueBase
Queuequeue_
 
FlowProtoflow_proto_
 
FlowTokenPooltoken_pool_
 
uint64_t task_start_
 
uint32_t count_
 
uint64_t events_processed_
 
uint16_t latency_limit_
 
struct rusage rusage_
 

Detailed Description

Definition at line 309 of file flow_event.h.

Constructor & Destructor Documentation

FlowEventQueue::FlowEventQueue ( Agent agent,
FlowProto proto,
FlowTable table,
FlowTokenPool pool,
uint16_t  latency_limit,
uint32_t  max_iterations 
)

Definition at line 234 of file flow_event.cc.

FlowEventQueue::~FlowEventQueue ( )
virtual

Definition at line 245 of file flow_event.cc.

Member Function Documentation

bool FlowEventQueue::HandleEvent ( FlowEvent event)
virtual

Implements FlowEventQueueBase.

Definition at line 248 of file flow_event.cc.

Here is the call graph for this function:

Member Data Documentation

FlowTable* FlowEventQueue::flow_table_
private

Definition at line 318 of file flow_event.h.


The documentation for this class was generated from the following files: