NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd-forwarder-status.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_MANAGEMENT_NFD_FORWARDER_STATUS_HPP
23
#define NDN_MANAGEMENT_NFD_FORWARDER_STATUS_HPP
24
25
#include "../encoding/block.hpp"
26
#include "../util/time.hpp"
27
28
namespace
ndn
{
29
namespace
nfd
{
30
36
class
ForwarderStatus
37
{
38
public
:
39
class
Error
:
public
tlv::Error
40
{
41
public
:
42
explicit
43
Error
(
const
std::string& what)
44
: tlv::
Error
(what)
45
{
46
}
47
};
48
49
ForwarderStatus
();
50
51
explicit
52
ForwarderStatus
(
const
Block
& payload);
53
58
template
<encoding::Tag TAG>
59
size_t
60
wireEncode
(
EncodingImpl<TAG>
& encoder)
const
;
61
66
const
Block
&
67
wireEncode
()
const
;
68
73
void
74
wireDecode
(
const
Block
& wire);
75
76
public
:
// getters & setters
77
const
std::string&
78
getNfdVersion
()
const
79
{
80
return
m_nfdVersion;
81
}
82
83
ForwarderStatus
&
84
setNfdVersion
(
const
std::string& nfdVersion);
85
86
const
time::system_clock::TimePoint
&
87
getStartTimestamp
()
const
88
{
89
return
m_startTimestamp;
90
}
91
92
ForwarderStatus
&
93
setStartTimestamp
(
const
time::system_clock::TimePoint
& startTimestamp);
94
95
const
time::system_clock::TimePoint
&
96
getCurrentTimestamp
()
const
97
{
98
return
m_currentTimestamp;
99
}
100
101
ForwarderStatus
&
102
setCurrentTimestamp
(
const
time::system_clock::TimePoint
& currentTimestamp);
103
104
size_t
105
getNNameTreeEntries
()
const
106
{
107
return
m_nNameTreeEntries;
108
}
109
110
ForwarderStatus
&
111
setNNameTreeEntries
(
size_t
nNameTreeEntries);
112
113
size_t
114
getNFibEntries
()
const
115
{
116
return
m_nFibEntries;
117
}
118
119
ForwarderStatus
&
120
setNFibEntries
(
size_t
nFibEntries);
121
122
size_t
123
getNPitEntries
()
const
124
{
125
return
m_nPitEntries;
126
}
127
128
ForwarderStatus
&
129
setNPitEntries
(
size_t
nPitEntries);
130
131
size_t
132
getNMeasurementsEntries
()
const
133
{
134
return
m_nMeasurementsEntries;
135
}
136
137
ForwarderStatus
&
138
setNMeasurementsEntries
(
size_t
nMeasurementsEntries);
139
140
size_t
141
getNCsEntries
()
const
142
{
143
return
m_nCsEntries;
144
}
145
146
ForwarderStatus
&
147
setNCsEntries
(
size_t
nCsEntries);
148
149
uint64_t
150
getNInInterests
()
const
151
{
152
return
m_nInInterests;
153
}
154
155
ForwarderStatus
&
156
setNInInterests
(uint64_t nInInterests);
157
158
uint64_t
159
getNInDatas
()
const
160
{
161
return
m_nInDatas;
162
}
163
164
ForwarderStatus
&
165
setNInDatas
(uint64_t nInDatas);
166
167
uint64_t
168
getNOutInterests
()
const
169
{
170
return
m_nOutInterests;
171
}
172
173
ForwarderStatus
&
174
setNOutInterests
(uint64_t nOutInterests);
175
176
uint64_t
177
getNOutDatas
()
const
178
{
179
return
m_nOutDatas;
180
}
181
182
ForwarderStatus
&
183
setNOutDatas
(uint64_t nOutDatas);
184
185
private
:
186
std::string m_nfdVersion;
187
time::system_clock::TimePoint
m_startTimestamp;
188
time::system_clock::TimePoint
m_currentTimestamp;
189
size_t
m_nNameTreeEntries;
190
size_t
m_nFibEntries;
191
size_t
m_nPitEntries;
192
size_t
m_nMeasurementsEntries;
193
size_t
m_nCsEntries;
194
uint64_t m_nInInterests;
195
uint64_t m_nInDatas;
196
uint64_t m_nOutInterests;
197
uint64_t m_nOutDatas;
198
199
mutable
Block
m_wire;
200
};
201
202
}
// namespace nfd
203
}
// namespace ndn
204
205
#endif // NDN_MANAGEMENT_NFD_FORWARDER_STATUS_HPP
ndn::nfd::ForwarderStatus::getNInInterests
uint64_t getNInInterests() const
Definition:
nfd-forwarder-status.hpp:150
ndn::nfd::ForwarderStatus::setNOutDatas
ForwarderStatus & setNOutDatas(uint64_t nOutDatas)
Definition:
nfd-forwarder-status.cpp:311
ndn::nfd::ForwarderStatus::getNOutInterests
uint64_t getNOutInterests() const
Definition:
nfd-forwarder-status.hpp:168
ndn::nfd::ForwarderStatus::getNFibEntries
size_t getNFibEntries() const
Definition:
nfd-forwarder-status.hpp:114
ndn::nfd::ForwarderStatus
represents NFD Forwarder Status
Definition:
nfd-forwarder-status.hpp:36
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::ForwarderStatus::setNFibEntries
ForwarderStatus & setNFibEntries(size_t nFibEntries)
Definition:
nfd-forwarder-status.cpp:255
ndn::nfd::ForwarderStatus::Error::Error
Error(const std::string &what)
Definition:
nfd-forwarder-status.hpp:43
ndn::Block
Class representing a wire element of NDN-TLV packet format.
Definition:
block.hpp:43
ndn::nfd::ForwarderStatus::setNCsEntries
ForwarderStatus & setNCsEntries(size_t nCsEntries)
Definition:
nfd-forwarder-status.cpp:279
ndn::nfd::ForwarderStatus::Error
Definition:
nfd-forwarder-status.hpp:39
ndn::nfd::ForwarderStatus::getNInDatas
uint64_t getNInDatas() const
Definition:
nfd-forwarder-status.hpp:159
ndn::nfd::ForwarderStatus::setNNameTreeEntries
ForwarderStatus & setNNameTreeEntries(size_t nNameTreeEntries)
Definition:
nfd-forwarder-status.cpp:247
ndn::nfd::ForwarderStatus::getNPitEntries
size_t getNPitEntries() const
Definition:
nfd-forwarder-status.hpp:123
ndn::nfd::ForwarderStatus::getStartTimestamp
const time::system_clock::TimePoint & getStartTimestamp() const
Definition:
nfd-forwarder-status.hpp:87
ndn::nfd::ForwarderStatus::setNInInterests
ForwarderStatus & setNInInterests(uint64_t nInInterests)
Definition:
nfd-forwarder-status.cpp:287
ndn::nfd::ForwarderStatus::setStartTimestamp
ForwarderStatus & setStartTimestamp(const time::system_clock::TimePoint &startTimestamp)
Definition:
nfd-forwarder-status.cpp:231
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
ndn::nfd::ForwarderStatus::getNOutDatas
uint64_t getNOutDatas() const
Definition:
nfd-forwarder-status.hpp:177
ndn::nfd::ForwarderStatus::setNfdVersion
ForwarderStatus & setNfdVersion(const std::string &nfdVersion)
Definition:
nfd-forwarder-status.cpp:223
ndn::nfd::ForwarderStatus::setNOutInterests
ForwarderStatus & setNOutInterests(uint64_t nOutInterests)
Definition:
nfd-forwarder-status.cpp:303
ndn::nfd::ForwarderStatus::setNPitEntries
ForwarderStatus & setNPitEntries(size_t nPitEntries)
Definition:
nfd-forwarder-status.cpp:263
ndn::encoding::EncodingImpl
Definition:
encoding-buffer-fwd.hpp:45
ndn::time::system_clock::TimePoint
time_point TimePoint
Definition:
time.hpp:78
ndn::nfd::ForwarderStatus::setNInDatas
ForwarderStatus & setNInDatas(uint64_t nInDatas)
Definition:
nfd-forwarder-status.cpp:295
ndn::nfd::ForwarderStatus::wireDecode
void wireDecode(const Block &wire)
decode ForwarderStatus from a Content block
Definition:
nfd-forwarder-status.cpp:116
ndn::nfd::ForwarderStatus::getNCsEntries
size_t getNCsEntries() const
Definition:
nfd-forwarder-status.hpp:141
ndn::nfd::ForwarderStatus::getCurrentTimestamp
const time::system_clock::TimePoint & getCurrentTimestamp() const
Definition:
nfd-forwarder-status.hpp:96
ndn::nfd::ForwarderStatus::getNMeasurementsEntries
size_t getNMeasurementsEntries() const
Definition:
nfd-forwarder-status.hpp:132
ndn::nfd::ForwarderStatus::setNMeasurementsEntries
ForwarderStatus & setNMeasurementsEntries(size_t nMeasurementsEntries)
Definition:
nfd-forwarder-status.cpp:271
ndn::nfd::ForwarderStatus::setCurrentTimestamp
ForwarderStatus & setCurrentTimestamp(const time::system_clock::TimePoint ¤tTimestamp)
Definition:
nfd-forwarder-status.cpp:239
ndn::nfd::ForwarderStatus::getNNameTreeEntries
size_t getNNameTreeEntries() const
Definition:
nfd-forwarder-status.hpp:105
ndn::nfd::ForwarderStatus::getNfdVersion
const std::string & getNfdVersion() const
Definition:
nfd-forwarder-status.hpp:78
ndn::tlv::Error
represents an error in TLV encoding or decoding
Definition:
tlv.hpp:50
ndn::nfd::ForwarderStatus::ForwarderStatus
ForwarderStatus()
Definition:
nfd-forwarder-status.cpp:36
ndn::nfd::ForwarderStatus::wireEncode
const Block & wireEncode() const
encode ForwarderStatus as a Content block
Definition:
nfd-forwarder-status.cpp:100
ndnSIM
ndn-cxx
src
management
nfd-forwarder-status.hpp
Generated on Fri Feb 23 2018 12:30:54 for ndnSIM by
1.8.14