org.ccnx.ccn.test.impl.DeprecatedInterfaceTest Class Reference

Since the deprecated interfaces need coding support, we need to test they still work as long as they aren't removed. More...

Inheritance diagram for org.ccnx.ccn.test.impl.DeprecatedInterfaceTest:

org.ccnx.ccn.test.CCNTestBase org.ccnx.ccn.CCNFilterListener org.ccnx.ccn.CCNInterestListener org.ccnx.ccn.CCNInterestHandler org.ccnx.ccn.CCNContentHandler

List of all members.

Public Member Functions

void testDeprecatedMethods () throws Throwable
boolean handleInterest (Interest interest)
 Callback called when we get a new interest matching our filter.
Interest handleContent (ContentObject data, Interest interest)
 Callback called when we get new results for our query.

Package Attributes

boolean sawInterest = false
boolean sawContent = false
Semaphore interestSema = null
Semaphore contentSema = null
boolean putNow = false
int counter = 0

Static Package Attributes

static final int QUICK_TIMEOUT = 200
static final int MORE_THAN_RETRY_TIMEOUT = SystemConfiguration.INTEREST_REEXPRESSION_DEFAULT * 2
static CCNTestHelper testHelper = new CCNTestHelper(DeprecatedInterfaceTest.class)
static ContentName prefix = testHelper.getTestNamespace("testDeprecatedInterfaces")


Detailed Description

Since the deprecated interfaces need coding support, we need to test they still work as long as they aren't removed.

Member Function Documentation

boolean org.ccnx.ccn.test.impl.DeprecatedInterfaceTest.handleInterest ( Interest  interest  ) 

Callback called when we get a new interest matching our filter.

Parameters:
interests The matching interest
Returns:
true if this handler has consumed the interest (that is the handler returned data satisfying the interest).

Implements org.ccnx.ccn.CCNInterestHandler.

Interest org.ccnx.ccn.test.impl.DeprecatedInterfaceTest.handleContent ( ContentObject  data,
Interest  interest 
)

Callback called when we get new results for our query.

Parameters:
data the ContentObject that matched our Interest
interest Interest that was satisfied
Returns:
new Interest to be expressed

Implements org.ccnx.ccn.CCNContentHandler.


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:45:08 2012 for Content-Centric Networking in Java by  doxygen 1.5.6