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

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

List of all members.

Classes

class  NEResponse

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)

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.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 
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.


The documentation for this class was generated from the following file:
Generated on Tue Aug 21 14:55:21 2012 for Content-Centric Networking in Java by  doxygen 1.6.3