Feature #3329
closedController: client for StatusDataset
100%
Description
Add StatusDataset client functionality into ndn::nfd::Controller
.
Currently, ndn::nfd::Controller
contains a client for NFD ControlCommand.
An application can easily execute a command on the local NFD with controller.start<FaceCreateCommand>
, and need not know the details such as the exact name for this command.
However, there's a disparity for NFD StatusDataset, which is another major part of NFD Management protocol.
An application must manually construct the name of a dataset, use SegmentFetcher
to obtain the contents, and then manually parse the dataset.
To simplify applications, StatusDataset client shall be integrated into ndn::nfd::Controller
.
An application can request a dataset using a syntax like:
controller.fetch<FaceDataset>(onSuccess, onFailure, options);
controller.fetch<FaceQueryDataset>(faceQueryFilter, onSuccess, onFailure, options);
Updated by Junxiao Shi about 9 years ago
- Category set to Management
- Target version set to v0.5
- Start date deleted (
11/11/2015) - Estimated time set to 6.00 h
The API I have in mind is:
// for datasets without parameter, such as FIB
template<typename Dataset>
fetch(std::function<void(Dataset::ResultType)>, CommandFailCallback, CommandOptions);
// for datasets with parameter, such as face query
template<typename Dataset>
fetch(Dataset::ParameterType, std::function<void(Dataset::ResultType)>, CommandFailCallback, CommandOptions);
// ResultType is the full dataset (usually a vector), not a single element
// CommandFailCallback and CommandOptions can be renamed as necessary
Updated by Junxiao Shi about 9 years ago
20151117 conference call approves the idea of this feature.
Updated by Junxiao Shi over 8 years ago
- Blocks Task #3620: RibManager: fetch face dataset with StatusDataset client added
Updated by Junxiao Shi over 8 years ago
- Assignee set to Junxiao Shi
I plan to work on this feature in a week.
Updated by Junxiao Shi over 8 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
http://gerrit.named-data.net/2877 patchset1 has the APIs.
Feedback is needed before I can continue.
Updated by Junxiao Shi over 8 years ago
- Status changed from In Progress to Code review
- % Done changed from 30 to 100
Updated by Junxiao Shi over 8 years ago
- Blocks Feature #3653: Controller: response validation added
Updated by Junxiao Shi over 8 years ago
- Status changed from Code review to Closed
Updated by Junxiao Shi over 8 years ago
- Blocks Feature #3658: nfd-status: fetch datasets with StatusDataset client added
Updated by Junxiao Shi over 8 years ago
- Blocks Task #3659: nfd-autoreg: fetch face dataset with StatusDataset client added
Updated by Junxiao Shi over 8 years ago
- Blocks Task #3660: nfdc: fetch face query dataset with StatusDataset client added
Updated by Junxiao Shi over 8 years ago
- Status changed from Closed to Feedback
- % Done changed from 100 to 90
StatusDataset
subclass for faces/channels
dataset is missing.
Updated by Junxiao Shi over 8 years ago
- Status changed from Feedback to Code review
- % Done changed from 90 to 100
https://gerrit.named-data.net/2913 adds ChannelDataset
.
Updated by Junxiao Shi over 8 years ago
- Status changed from Code review to Closed