org.ccnx.ccn.test.CCNLibraryTestHarness Class Reference
An enhanced CCNHandle used for logging/tracking during tests.
More...
List of all members.
Detailed Description
An enhanced CCNHandle used for logging/tracking during tests.
Member Function Documentation
ContentObject org.ccnx.ccn.test.CCNLibraryTestHarness.get |
( |
Interest |
interest, |
|
|
long |
timeout | |
|
) |
| | throws IOException |
Get a single piece of content from CCN.
This is a blocking get, it will return when matching content is found or it times out, whichever comes first.
- Parameters:
-
- Returns:
- the content object
- Exceptions:
-
Reimplemented from org.ccnx.ccn.CCNHandle.
Put a single content object into the network.
This is a low-level put, and typically should only be called by a flow controller, in response to a received Interest. Attempting to write to ccnd without having first received a corresponding Interest violates flow balance, and the content will be dropped.
- Parameters:
-
| co | the content object to write. This should be complete and well-formed -- signed and so on. |
- Returns:
- the object that was put if successful, otherwise null.
- Exceptions:
-
Reimplemented from org.ccnx.ccn.CCNHandle.
Register a standing interest filter with callback to receive any matching interests seen.
- Parameters:
-
Reimplemented from org.ccnx.ccn.CCNHandle.
Unregister a standing interest filter.
- Parameters:
-
- Exceptions:
-
| IOException | if handle is closed |
Reimplemented from org.ccnx.ccn.CCNHandle.
The documentation for this class was generated from the following file:
- src/org/ccnx/ccn/test/CCNLibraryTestHarness.java