Task #1199
Updated by Junxiao Shi over 10 years ago
Develop `StatusServer` that collects forwarder-level statistics, and provides them in response to [[ControlCommand]]. The statistics provided by this module are forwarder-level statistics: statistics, similar to these ndnd elements: <identity> <ndndid>E8899730656229D0BBB44A6C4765BC5D2CE02E84FA1FD9F828FC81C859320376</ndndid> <apiversion>7002</apiversion> <starttime>1387395370.438293</starttime> <now>1391813608.640285</now> </identity> <cobs> <accessioned>1292792</accessioned> <stored>54944</stored> <stale>54933</stale> <sparse>7</sparse> <duplicate>170219</duplicate> <sent>2036751</sent> </cobs> <interests> <names>531</names> <pending>5</pending> <propagating>6</propagating> <noted>91</noted> <accepted>82875607</accepted> <dropped>2654120</dropped> <sent>166594337</sent> <stuffed>351827</stuffed> </interests> * current number of NameTree entries * current number of FIB entries * current number of PIT entries (regardless of whether it is pending or satisfied) * current number of Measurements entries * current number of CS entries * total number of incoming Interests since forwarder starts * total number of outgoing Interests since forwarder starts * total number of incoming Datas since forwarder starts * total number of outgoing Datas since forwarder starts The `StatusServer` class does not provide: * face counters: #1245 in `FaceManager` * FIB entries: #1192 in `FibManager`