org.ccnx.ccn.impl.repo.RepositoryInterestHandler Class Reference

Handles interests matching the repository's namespace. More...

Inheritance diagram for org.ccnx.ccn.impl.repo.RepositoryInterestHandler:

org.ccnx.ccn.CCNInterestHandler

List of all members.

Public Member Functions

 RepositoryInterestHandler (RepositoryServer server)
boolean handleInterest (Interest interest)
 Callback called when we get a new interest matching our filter.
void process (Interest interest)
 Parse incoming interests for type and dispatch those dedicated to some special purpose.
void nameEnumeratorResponse (Interest interest)
 Handle name enumeration requests.
void shutdown ()

Protected Member Functions

boolean _checkShutdown ()
boolean allowGenerated (Interest interest)

Classes

class  NEResponse


Detailed Description

Handles interests matching the repository's namespace.

See also:
RepositoryServer

RepositoryFlowControl

RepositoryDataListener


Member Function Documentation

boolean org.ccnx.ccn.impl.repo.RepositoryInterestHandler.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.

void org.ccnx.ccn.impl.repo.RepositoryInterestHandler.process ( Interest  interest  ) 

Parse incoming interests for type and dispatch those dedicated to some special purpose.

Interests can be to start a write or a name enumeration request. If the interest has no special purpose, its assumed that it's to actually read data from the repository and the request is sent to the RepositoryStore to be processed.

void org.ccnx.ccn.impl.repo.RepositoryInterestHandler.nameEnumeratorResponse ( Interest  interest  ) 

Handle name enumeration requests.

NE responses can potentially take a long time so don't hog the queue - dispatch these separately.

Parameters:
interest 


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

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