forwarder-status-manager.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_MGMT_FORWARDER_STATUS_MANAGER_HPP
27 #define NFD_DAEMON_MGMT_FORWARDER_STATUS_MANAGER_HPP
28 
29 #include "core/manager-base.hpp"
30 #include <ndn-cxx/mgmt/nfd/forwarder-status.hpp>
31 
32 namespace nfd {
33 
34 class Forwarder;
35 
40 class ForwarderStatusManager : noncopyable
41 {
42 public:
43  ForwarderStatusManager(Forwarder& forwarder, Dispatcher& dispatcher);
44 
45 private:
46  ndn::nfd::ForwarderStatus
47  collectGeneralStatus();
48 
51  void
52  listGeneralStatus(const Name& topPrefix, const Interest& interest,
53  ndn::mgmt::StatusDatasetContext& context);
54 
55 private:
56  Forwarder& m_forwarder;
57  Dispatcher& m_dispatcher;
58  time::system_clock::TimePoint m_startTimestamp;
59 };
60 
61 } // namespace nfd
62 
63 #endif // NFD_DAEMON_MGMT_FORWARDER_STATUS_MANAGER_HPP
main class of NFD
Definition: forwarder.hpp:52
implement the Forwarder Status of NFD Management Protocol.
ForwarderStatusManager(Forwarder &forwarder, Dispatcher &dispatcher)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32