Public Member Functions | |
void | reset () |
Queue< ContentObject > | getOutputQueue () |
ContentObject | put (ContentObject co) throws IOException |
Put a single content object into the network. | |
void | registerFilter (ContentName filter, CCNInterestHandler handler) |
Register a standing interest filter with callback to receive any matching interests seen. | |
void | unregisterFilter (ContentName filter, CCNInterestHandler handler) |
Unregister a standing interest filter. | |
ContentObject | get (Interest interest, long timeout) throws IOException |
Get a single piece of content from CCN. | |
ContentObject | get (ContentName name, long timeout) throws IOException |
Helper method wrapped around CCNBase.get(Interest, long). |
ContentObject org.ccnx.ccn.test.CCNLibraryTestHarness.put | ( | ContentObject | co | ) | throws IOException |
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.
co | the content object to write. This should be complete and well-formed -- signed and so on. |
IOException |
Reimplemented from org.ccnx.ccn.CCNHandle.
void org.ccnx.ccn.test.CCNLibraryTestHarness.registerFilter | ( | ContentName | filter, | |
CCNInterestHandler | callbackHandler | |||
) |
Register a standing interest filter with callback to receive any matching interests seen.
filter | ||
callbackHandler |
Reimplemented from org.ccnx.ccn.CCNHandle.
void org.ccnx.ccn.test.CCNLibraryTestHarness.unregisterFilter | ( | ContentName | filter, | |
CCNInterestHandler | callbackHandler | |||
) |
Unregister a standing interest filter.
filter | ||
callbackHandler |
IOException | if handle is closed |
Reimplemented from org.ccnx.ccn.CCNHandle.
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.
interest | ||
timeout |
IOException |
Reimplemented from org.ccnx.ccn.CCNHandle.
ContentObject org.ccnx.ccn.test.CCNLibraryTestHarness.get | ( | ContentName | name, | |
long | timeout | |||
) | throws IOException |
Helper method wrapped around CCNBase.get(Interest, long).
name | name to query for | |
timeout | timeout for get |
IOException | on error |
Reimplemented from org.ccnx.ccn.CCNHandle.