OpenSDN source code
|
#include <mac_learning.h>
Public Member Functions | |
MacLearningSandeshResp (Agent *agent, MacEntryResp *resp, std::string resp_ctx, std::string key, const MacAddress &mac) | |
virtual | ~MacLearningSandeshResp () |
std::string | Description () const |
![]() | |
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 |
Static Public Attributes | |
static const uint32_t | kMaxResponse = 100 |
static const char | kDelimiter = '-' |
![]() | |
static const int | kTaskInstanceAny = -1 |
Private Member Functions | |
bool | Run () |
Code to execute. Returns true if task is completed. Return false to reschedule the task. More... | |
bool | SetMacKey (string key) |
void | SendResponse (SandeshResponse *resp) |
const MacLearningPartition * | GetPartition () |
std::string | GetMacKey () |
DISALLOW_COPY_AND_ASSIGN (MacLearningSandeshResp) | |
Private Attributes | |
Agent * | agent_ |
MacEntryResp * | resp_ |
std::string | resp_data_ |
uint32_t | partition_id_ |
uint32_t | vrf_id_ |
MacAddress | mac_ |
bool | exact_match_ |
MacAddress | user_given_mac_ |
Additional Inherited Members | |
![]() | |
enum | State { INIT, WAIT, RUN } |
Task states. More... | |
enum | TbbState { TBB_INIT, TBB_ENQUEUED, TBB_EXEC, TBB_DONE } |
![]() | |
static Task * | Running () |
Returns a pointer to the current task the code is executing under. More... | |
Definition at line 259 of file mac_learning.h.
MacLearningSandeshResp::MacLearningSandeshResp | ( | Agent * | agent, |
MacEntryResp * | resp, | ||
std::string | resp_ctx, | ||
std::string | key, | ||
const MacAddress & | mac | ||
) |
|
virtual |
Definition at line 340 of file mac_learning.cc.
|
inlinevirtual |
Implements Task.
Definition at line 268 of file mac_learning.h.
|
private |
|
private |
|
private |
|
privatevirtual |
Code to execute. Returns true if task is completed. Return false to reschedule the task.
Implements Task.
Definition at line 390 of file mac_learning.cc.
|
private |
|
private |
|
private |
Definition at line 278 of file mac_learning.h.
|
private |
Definition at line 284 of file mac_learning.h.
|
static |
Definition at line 262 of file mac_learning.h.
|
static |
Definition at line 261 of file mac_learning.h.
|
private |
Definition at line 283 of file mac_learning.h.
|
private |
Definition at line 281 of file mac_learning.h.
|
private |
Definition at line 279 of file mac_learning.h.
|
private |
Definition at line 280 of file mac_learning.h.
|
private |
Definition at line 285 of file mac_learning.h.
|
private |
Definition at line 282 of file mac_learning.h.