blob: 95abbae2b07f15e0c190427991e276e7be684b5f [file] [log] [blame]
schneiderklausd8197df2019-03-16 11:31:40 -07001/*
Davide Pesaventob3570c62022-02-19 19:19:00 -05002 * Copyright (c) 2016-2022, Regents of the University of California,
schneiderklausd8197df2019-03-16 11:31:40 -07003 * Colorado State University,
4 * University Pierre & Marie Curie, Sorbonne University.
Weiwei Liu245d7912016-07-28 00:04:25 -07005 *
6 * This file is part of ndn-tools (Named Data Networking Essential Tools).
7 * See AUTHORS.md for complete list of ndn-tools authors and contributors.
8 *
9 * ndn-tools is free software: you can redistribute it and/or modify it under the terms
10 * of the GNU General Public License as published by the Free Software Foundation,
11 * either version 3 of the License, or (at your option) any later version.
12 *
13 * ndn-tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
14 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
21 *
22 * @author Weiwei Liu
23 */
24
schneiderklausd8197df2019-03-16 11:31:40 -070025#ifndef NDN_TOOLS_CHUNKS_CATCHUNKS_STATISTICS_COLLECTOR_HPP
26#define NDN_TOOLS_CHUNKS_CATCHUNKS_STATISTICS_COLLECTOR_HPP
Weiwei Liu245d7912016-07-28 00:04:25 -070027
schneiderklausd8197df2019-03-16 11:31:40 -070028#include "pipeline-interests-adaptive.hpp"
Weiwei Liu245d7912016-07-28 00:04:25 -070029
Davide Pesaventob3570c62022-02-19 19:19:00 -050030namespace ndn::chunks {
Weiwei Liu245d7912016-07-28 00:04:25 -070031
32/**
schneiderklausd8197df2019-03-16 11:31:40 -070033 * @brief Statistics collector for Adaptive pipelines
Weiwei Liu245d7912016-07-28 00:04:25 -070034 */
35class StatisticsCollector : noncopyable
36{
37public:
Davide Pesavento5e3773d2019-08-22 15:35:08 -040038 StatisticsCollector(PipelineInterestsAdaptive& pipeline,
Weiwei Liu245d7912016-07-28 00:04:25 -070039 std::ostream& osCwnd, std::ostream& osRtt);
40
41private:
42 std::ostream& m_osCwnd;
43 std::ostream& m_osRtt;
44};
45
Davide Pesaventob3570c62022-02-19 19:19:00 -050046} // namespace ndn::chunks
Weiwei Liu245d7912016-07-28 00:04:25 -070047
schneiderklausd8197df2019-03-16 11:31:40 -070048#endif // NDN_TOOLS_CHUNKS_CATCHUNKS_STATISTICS_COLLECTOR_HPP