Project

General

Profile

Actions

Feature #1275

closed

Face: separation of prefix registration and Interest filter

Added by Junxiao Shi over 10 years ago. Updated over 10 years ago.

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

100%

Estimated time:
3.00 h

Description

Scenario

App wants to register a more general prefix, but make use of library's dispatch mechanism to invoke different handler based on Name.

Proposed change

Have two methods on Face class:

  • RegisteredPrefix* registerPrefix(Name, successCallback, failureCallback)
    Send a prefix registration command using NRD Prefix Registration protocol.
    The return value allows app to unregister the prefix.
  • InterestFilter* setInterestFilter(Name, interestHandler)
    Cause Face to dispatch Interest under Name to interestHandler.
    The return value allows app to cancel the filter.

To get Interest into an handler, app needs to:

  1. registerPrefix to get Interest into the Face
  2. setInterestFilter to get Interest into the handler
Actions #1

Updated by Junxiao Shi over 10 years ago

  • Tracker changed from Task to Feature

This feature becomes more relevant when we see 4 RIB entries registered by repo-ng.

repo-ng calls setInterestFilter once for each command verb. This results in one RIB entries per command.

After this feature is implemented, repo-ng could register only one RIB entry covering all commands, and still use the dispatching mechanism provided by setInterestFilter.

Actions #2

Updated by Junxiao Shi over 10 years ago

  • Description updated (diff)
  • Estimated time set to 3.00 h
Actions #3

Updated by Alex Afanasyev over 10 years ago

  • Category set to Base
  • Status changed from New to In Progress
  • Assignee set to Alex Afanasyev
  • Target version set to v0.2
  • % Done changed from 0 to 20
Actions #4

Updated by Alex Afanasyev over 10 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 20 to 100
Actions #5

Updated by Alex Afanasyev over 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF