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

#include <pkt_sandesh_flow.h>

Inheritance diagram for PktSandeshFlowStats:
Collaboration diagram for PktSandeshFlowStats:

Public Member Functions

 PktSandeshFlowStats (Agent *agent, FlowStatsCollectorRecordsResp *obj, std::string resp_ctx, std::string key)
 
virtual ~PktSandeshFlowStats ()
 
bool SetProtoKey (std::string key)
 
virtual bool Run ()
 Code to execute. Returns true if task is completed. Return false to reschedule the task. More...
 
bool SetProto (std::string &key)
 
- Public Member Functions inherited from PktSandeshFlow
 PktSandeshFlow (Agent *agent, FlowRecordsResp *obj, std::string resp_ctx, std::string key)
 
virtual ~PktSandeshFlow ()
 
void SendResponse (SandeshResponse *resp)
 
bool SetFlowKey (std::string key)
 
std::string Description () const
 
void SetSandeshFlowData (std::vector< SandeshFlowData > &list, FlowEntry *fe, const FlowExportInfo *info)
 
void set_delete_op (bool delete_op)
 
- Public Member Functions inherited from Task
 Task (int task_id, int task_instance)
 
 Task (int task_id)
 
virtual ~Task ()
 
virtual void OnTaskCancel ()
 Called on task exit, if it is marked for cancellation. If the user wants to do any cleanup on task cancellation, then he/she can overload this function. More...
 
State GetState () const
 
int GetTaskId () const
 
int GetTaskInstance () const
 
uint64_t GetSeqno () const
 
bool task_cancelled () const
 
uint64_t enqueue_time () const
 
uint64_t schedule_time () const
 
uint32_t execute_delay () const
 
uint32_t schedule_delay () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (PktSandeshFlowStats)
 

Private Attributes

uint32_t proto_
 
uint32_t port_
 
FlowStatsCollectorRecordsResp * resp_
 

Additional Inherited Members

- Public Types inherited from Task
enum  State { INIT, WAIT, RUN }
 Task states. More...
 
enum  TbbState { TBB_INIT, TBB_ENQUEUED, TBB_EXEC, TBB_DONE }
 
- Static Public Member Functions inherited from PktSandeshFlow
static std::string GetFlowKey (const FlowKey &key, uint16_t partition_id)
 
- Static Public Member Functions inherited from Task
static TaskRunning ()
 Returns a pointer to the current task the code is executing under. More...
 
- Static Public Attributes inherited from PktSandeshFlow
static const int kMaxFlowResponse = 100
 
static const char kDelimiter = '-'
 
static const std::string start_key = "0-0-0-0-0-0.0.0.0-0.0.0.0"
 
- Static Public Attributes inherited from Task
static const int kTaskInstanceAny = -1
 
- Protected Attributes inherited from PktSandeshFlow
FlowRecordsResp * resp_obj_
 
std::string resp_data_
 
FlowKey flow_iteration_key_
 
bool key_valid_
 
bool delete_op_
 
Agentagent_
 
uint16_t partition_id_
 

Detailed Description

Definition at line 45 of file pkt_sandesh_flow.h.

Constructor & Destructor Documentation

PktSandeshFlowStats::PktSandeshFlowStats ( Agent agent,
FlowStatsCollectorRecordsResp *  obj,
std::string  resp_ctx,
std::string  key 
)

Definition at line 689 of file pkt_sandesh_flow.cc.

Here is the call graph for this function:

virtual PktSandeshFlowStats::~PktSandeshFlowStats ( )
inlinevirtual

Definition at line 49 of file pkt_sandesh_flow.h.

Member Function Documentation

PktSandeshFlowStats::DISALLOW_COPY_AND_ASSIGN ( PktSandeshFlowStats  )
private
bool PktSandeshFlowStats::Run ( )
virtual

Code to execute. Returns true if task is completed. Return false to reschedule the task.

Reimplemented from PktSandeshFlow.

Definition at line 584 of file pkt_sandesh_flow.cc.

Here is the call graph for this function:

bool PktSandeshFlowStats::SetProto ( std::string &  key)

Definition at line 670 of file pkt_sandesh_flow.cc.

Here is the call graph for this function:

bool PktSandeshFlowStats::SetProtoKey ( std::string  key)

Member Data Documentation

uint32_t PktSandeshFlowStats::port_
private

Definition at line 55 of file pkt_sandesh_flow.h.

uint32_t PktSandeshFlowStats::proto_
private

Definition at line 54 of file pkt_sandesh_flow.h.

FlowStatsCollectorRecordsResp* PktSandeshFlowStats::resp_
private

Definition at line 56 of file pkt_sandesh_flow.h.


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