Add setStrategy()
1 file changed
tree: 4a8e79248394c2e3115487e8a6c8a0b1f1d3ebf7
  1. src/
  2. .gitignore
  3. nb-configuration.xml
  4. pom.xml
  5. README.md
README.md

jndn-management

This project is a consists of tools for managing an NDN forwarding daemon (NFD). It relies on the NDN Protocol and its associated client library. It implements the NFD management pecification outlined at http://redmine.named-data.net/projects/nfd/wiki/Management.

Install

With Maven, add the following to your POM:

<dependency>
  <groupId>com.intel.jndn.management</groupId>
	<artifactId>jndn-management</artifactId>
	<version>RELEASE</version> <!-- or a specific version -->
</dependency>

Use

With a Face that has command signing information set, call any of the following static methods:

  • NFD.pingLocal(Face forwarder): ping a local NFD with /localhost/nfd to verify if it exists.
  • NFD.getFaceList(Face forwarder): retrieve all connected faces.
  • NFD.getFibList(Face forwarder): retrieve all forwarding entries in the Forwarding Information Base (FIB).
  • NFD.getRibList(Face forwarder): retrieve all routing entries in the Routing Information Base (RIB).
  • NFD.createFace(Face forwarder, String uri): create a new face on the NFD opened to the given URI.
  • NFD.register(Face forwarder, ...): includes several similar methods for registering a new route on the NFD.
  • NFD.unregister(Face forwarder, Name route): unregister a route by name.
  • NFD.setStrategy(Face forwarder, Name prefix, Name strategy): set the forwarding strategy for the given prefix.

License

This library is licensed under LGPLv3, see LICENSE.