Test the asynchronous interface to name enumeration. More...
Public Member Functions | |
void | testNameEnumerator () throws Exception |
void | testRegisterName () throws IOException |
void | testRegisterPrefix () |
void | testGetCallback () |
void | registerAdditionalName () |
void | testGetCallbackDirty () |
void | testCancelPrefix () |
void | testGetCallbackNoResponse () |
void | testGetCallbackAfterCancel () |
void | setLibraries () |
void | closeLibraries () |
int | handleNameEnumerator (ContentName p, ArrayList< ContentName > n) |
Callback called when we get a collection matching a registered prefix. | |
Package Attributes | |
CCNHandle | putLibrary |
CCNHandle | getLibrary |
CCNNameEnumerator | putne |
CCNNameEnumerator | getne |
Random | rand = new Random() |
String | namespaceString = "/parc.com" |
String | name1String = "/parc.com/registerTest/name1" |
ContentName | name1 |
String | name2String = "/parc.com/registerTest/name2" |
ContentName | name2 |
String | name2aString = "/parc.com/registerTest/name2/namea" |
ContentName | name2a |
String | name1StringDirty = "/parc.com/registerTest/name1TestDirty" |
ContentName | name1Dirty |
String | prefix1String = "/parc.com/registerTest" |
String | prefix1StringError = "/park.com/registerTest" |
ArrayList< ContentName > | names |
ContentName | prefix1 |
ContentName | c1 |
ContentName | c2 |
Test the asynchronous interface to name enumeration.
int org.ccnx.ccn.test.profiles.nameenum.NameEnumeratorTest.handleNameEnumerator | ( | ContentName | prefix, | |
ArrayList< ContentName > | names | |||
) |
Callback called when we get a collection matching a registered prefix.
prefix | The ContentName prefix with matching responses. | |
names | An ArrayList of ContentNames matching the prefix. |
Implements org.ccnx.ccn.profiles.nameenum.BasicNameEnumeratorListener.