blob: 7047ffdb42ecdc18c5e72cf70b740426378e69f5 [file] [log] [blame] [view]
Andrew Brown352e0192015-02-20 17:41:45 -08001# jndn-management
2
Andrew Brown113d5f92015-02-20 17:46:28 -08003This project consists of tools for managing an NDN forwarding daemon (NFD). It relies on the [NDN Protocol](https://named-data.net) and its associated [client library](https://github.com/named-data/jndn). It implements the NFD management specification outlined at http://redmine.named-data.net/projects/nfd/wiki/Management. Please note that this library does not yet implement all of the commands in the management specification.
Andrew Brown352e0192015-02-20 17:41:45 -08004
5## Install
6With Maven, add the following to your POM:
7```
8<dependency>
9 <groupId>com.intel.jndn.management</groupId>
andrewsbrown72172852015-02-23 10:36:07 -080010 <artifactId>jndn-management</artifactId>
11 <version>RELEASE</version> <!-- or a specific version -->
Andrew Brown352e0192015-02-20 17:41:45 -080012</dependency>
13```
14
15## Use
16With a Face that has command signing information set, call any of the following static methods:
17 - __NFD.pingLocal(Face forwarder)__: ping a local NFD with /localhost/nfd to verify if it exists.
andrewsbrownff02da32015-03-25 10:52:12 -070018 - __NFD.getForwarderStatus(Face forwarder)__: retrieve the forwarder status information.
Andrew Brown352e0192015-02-20 17:41:45 -080019 - __NFD.getFaceList(Face forwarder)__: retrieve all connected faces.
20 - __NFD.getFibList(Face forwarder)__: retrieve all forwarding entries in the Forwarding Information Base (FIB).
21 - __NFD.getRibList(Face forwarder)__: retrieve all routing entries in the Routing Information Base (RIB).
22 - __NFD.createFace(Face forwarder, String uri)__: create a new face on the NFD opened to the given URI.
Andrew Brownd5f6f692015-02-20 17:43:05 -080023 - __NFD.register(Face forwarder, ...)__: includes several similar methods for registering a new route on the NFD.
24 - __NFD.unregister(Face forwarder, Name route)__: unregister a route by name.
Andrew Brown6e7471e2015-02-20 17:44:36 -080025 - __NFD.setStrategy(Face forwarder, Name prefix, Name strategy)__: set the forwarding strategy for the given prefix.
Andrew Brownd5f6f692015-02-20 17:43:05 -080026
andrewsbrown6b342ce2015-03-24 09:46:47 -070027See [full Javadoc documentation](http://01org.github.io/jndn-management/index.html)
28
Andrew Brownd5f6f692015-02-20 17:43:05 -080029## License
andrewsbrown7e6b9e82015-03-03 16:11:11 -080030Copyright © 2015, Intel Corporation.
31
32This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU Lesser General Public License, version 3, as published by the Free Software Foundation.
33
34This program is distributed in the hope it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [GNU Lesser General Public License](https://github.com/01org/jndn-management/blob/master/LICENSE) for more details.