#include <flow_kstate.h>
|
| | FlowKState (Agent *agent, const std::string &resp_ctx, int idx) |
| |
| | FlowKState (Agent *agent, const std::string &resp_ctx, const std::string &iter_idx) |
| |
| virtual void | SendResponse (KFlowResp *resp) const |
| |
| virtual bool | Run () |
| | Code to execute in a task. Returns true if task is completed. Return false to reschedule the task. More...
|
| |
| std::string | Description () const |
| | Gives a description of the task. More...
|
| |
| void | SetFlowData (std::vector< KFlowInfo > &list, const vr_flow_entry *k_flow, int index) const |
| |
| void | set_evicted_flag (bool show_evicted) |
| |
| | Task (int task_id, int task_data_id) |
| | Creates a new task with the given values of task code ID and task data ID. More...
|
| |
| | Task (int task_id) |
| | Creates a new task with the given value of task code ID and wildcard for task data ID. More...
|
| |
| virtual | ~Task () |
| | Destroys a task. More...
|
| |
| 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 | state () const |
| | Returns a state value of a task. More...
|
| |
| int | task_code_id () const |
| | Returns the code ID of this task. More...
|
| |
| int | task_data_id () const |
| | Returns the data ID of this task. More...
|
| |
| uint64_t | seqno () const |
| | Returns the sequence number of this task. More...
|
| |
| bool | task_cancelled () const |
| | Returns true if the task has been canceled. More...
|
| |
| uint64_t | enqueue_time () const |
| | Returns the time when the task was enqueued for execution. More...
|
| |
| uint64_t | schedule_time () const |
| | Returns the time when the task execution was started. More...
|
| |
| uint32_t | execute_delay () const |
| | Returns the threshold for the task execution duration. More...
|
| |
| uint32_t | schedule_delay () const |
| | Returns the time threshold for time difference between moments when the task was started and when it was enqueue. More...
|
| |
|
| void | UpdateFlagStr (std::string &str, bool &set, bool tcp, unsigned sflag, unsigned cflag) const |
| |
| const std::string | FlagToStr (unsigned int flag) const |
| |
| const std::string | TcpFlagToStr (unsigned int flag) const |
| |
| const std::string | DropCodeToStr (uint8_t drop_code) const |
| |
| void | SetFlowHandle (KFlowResp *resp, const uint32_t idx) const |
| |
Definition at line 8 of file flow_kstate.h.
◆ FlowKState() [1/2]
| FlowKState::FlowKState |
( |
Agent * |
agent, |
|
|
const std::string & |
resp_ctx, |
|
|
int |
idx |
|
) |
| |
◆ FlowKState() [2/2]
| FlowKState::FlowKState |
( |
Agent * |
agent, |
|
|
const std::string & |
resp_ctx, |
|
|
const std::string & |
iter_idx |
|
) |
| |
◆ Description()
| std::string FlowKState::Description |
( |
| ) |
const |
|
inlinevirtual |
◆ DropCodeToStr()
| const std::string FlowKState::DropCodeToStr |
( |
uint8_t |
drop_code | ) |
const |
|
private |
◆ FlagToStr()
| const string FlowKState::FlagToStr |
( |
unsigned int |
flag | ) |
const |
|
private |
◆ Run()
Code to execute in a task. Returns true if task is completed. Return false to reschedule the task.
Implements Task.
Definition at line 293 of file flow_kstate.cc.
◆ SendResponse()
| void FlowKState::SendResponse |
( |
KFlowResp * |
resp | ) |
const |
|
virtual |
◆ set_evicted_flag()
| void FlowKState::set_evicted_flag |
( |
bool |
show_evicted | ) |
|
|
inline |
◆ SetFlowData()
| void FlowKState::SetFlowData |
( |
std::vector< KFlowInfo > & |
list, |
|
|
const vr_flow_entry * |
k_flow, |
|
|
int |
index |
|
) |
| const |
◆ SetFlowHandle()
| void FlowKState::SetFlowHandle |
( |
KFlowResp * |
resp, |
|
|
const uint32_t |
idx |
|
) |
| const |
|
private |
◆ TcpFlagToStr()
| const string FlowKState::TcpFlagToStr |
( |
unsigned int |
flag | ) |
const |
|
private |
◆ UpdateFlagStr()
| void FlowKState::UpdateFlagStr |
( |
std::string & |
str, |
|
|
bool & |
set, |
|
|
bool |
tcp, |
|
|
unsigned |
sflag, |
|
|
unsigned |
cflag |
|
) |
| const |
|
private |
◆ agent_
| Agent* FlowKState::agent_ |
|
private |
◆ evicted_
| bool FlowKState::evicted_ |
|
protected |
◆ flow_idx_
| int FlowKState::flow_idx_ |
|
protected |
◆ flow_iteration_key_
| uint32_t FlowKState::flow_iteration_key_ |
|
protected |
◆ response_context_
| std::string FlowKState::response_context_ |
|
protected |
The documentation for this class was generated from the following files: