OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrouter_stats_collector.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #include <db/db.h>
6 #include <cmn/agent_cmn.h>
7 #include <init/agent_param.h>
8 #include <uve/stats_collector.h>
10 
12  AgentUveBase *uve) :
13  StatsCollector(TaskScheduler::GetInstance()->GetTaskId("Agent::Uve"),
14  0, io, uve->agent()->params()->vrouter_stats_interval(),
15  "Vrouter stats collector"),
16  agent_uve_(uve) {
17 }
18 
20 }
21 
23  run_counter_++;
25  /* We have not registered for ACL notification. So total_acl_rules
26  * of VN is periodically polled from VN ACL and VN UVE is sent if there
27  * are any changes.
28  */
30  return true;
31 }
32 
35 }
VnUveTableBase * vn_uve_table() const
VrouterUveEntryBase * vrouter_uve_entry() const
The TaskScheduler keeps track of what tasks are currently schedulable. When a task is enqueued it is ...
Definition: task.h:178
VrouterStatsCollector(boost::asio::io_service &io, AgentUveBase *uve)