OpenSDN source code
vrouter_stats_collector.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #include <db/db.h>
7 #include <cmn/agent_cmn.h>
8 #include <init/agent_param.h>
9 #include <uve/stats_collector.h>
11 
13  AgentUveBase *uve) :
14  StatsCollector(TaskScheduler::GetInstance()->GetTaskId("Agent::Uve"),
15  0, io, uve->agent()->params()->vrouter_stats_interval(),
16  "Vrouter stats collector"),
17  agent_uve_(uve) {
18 }
19 
21 }
22 
24  run_counter_++;
26  /* We have not registered for ACL notification. So total_acl_rules
27  * of VN is periodically polled from VN ACL and VN UVE is sent if there
28  * are any changes.
29  */
31  return true;
32 }
33 
36 }
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:307
VrouterStatsCollector(boost::asio::io_service &io, AgentUveBase *uve)
Definition: io_utils.cc:12