Project

General

Profile

Actions

Feature #3329

closed

Controller: client for StatusDataset

Added by Junxiao Shi about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Management
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
6.00 h

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);

Related issues 5 (0 open5 closed)

Blocks NFD - Task #3620: RibManager: fetch face dataset with StatusDataset clientClosedWeiwei Liu

Actions
Blocks ndn-cxx - Feature #3653: Controller: response validationClosedJunxiao Shi

Actions
Blocks NFD - Feature #3658: nfd-status: fetch datasets with StatusDataset clientClosedJunxiao Shi

Actions
Blocks NFD - Task #3659: nfd-autoreg: fetch face dataset with StatusDataset clientClosedWeiwei Liu

Actions
Blocks NFD - Task #3660: nfdc: fetch face query dataset with StatusDataset clientRejected

Actions
Actions #1

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
Actions #2

Updated by Junxiao Shi about 9 years ago

20151117 conference call approves the idea of this feature.

Actions #3

Updated by Junxiao Shi over 8 years ago

  • Blocks Task #3620: RibManager: fetch face dataset with StatusDataset client added
Actions #4

Updated by Junxiao Shi over 8 years ago

  • Assignee set to Junxiao Shi

I plan to work on this feature in a week.

Actions #5

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.

Actions #6

Updated by Junxiao Shi over 8 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 30 to 100
Actions #7

Updated by Junxiao Shi over 8 years ago

Actions #8

Updated by Junxiao Shi over 8 years ago

  • Status changed from Code review to Closed
Actions #9

Updated by Junxiao Shi over 8 years ago

  • Blocks Feature #3658: nfd-status: fetch datasets with StatusDataset client added
Actions #10

Updated by Junxiao Shi over 8 years ago

  • Blocks Task #3659: nfd-autoreg: fetch face dataset with StatusDataset client added
Actions #11

Updated by Junxiao Shi over 8 years ago

  • Blocks Task #3660: nfdc: fetch face query dataset with StatusDataset client added
Actions #12

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.

Actions #13

Updated by Junxiao Shi over 8 years ago

  • Status changed from Feedback to Code review
  • % Done changed from 90 to 100
Actions #14

Updated by Junxiao Shi over 8 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF