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

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

List of all members.

Public Member Functions

 RepositoryInterestHandler (RepositoryServer server)
boolean handleInterest (Interest interest)
 Parse incoming interests for type and dispatch those dedicated to some special purpose.
void nameEnumeratorResponse (Interest interest)
 Handle name enumeration requests.

Protected Member Functions

boolean allowGenerated (Interest interest)
boolean isDuplicateRequest (Interest interest)
 Check for duplicate request, i.e.
boolean isWriteSuspended (Interest interest)
 Check whether new writes are allowed now Logs the discarded request if it cannot be processed.

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  ) 

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.

Implements org.ccnx.ccn.CCNFilterListener.

boolean org.ccnx.ccn.impl.repo.RepositoryInterestHandler.isDuplicateRequest ( Interest  interest  )  [protected]

Check for duplicate request, i.e.

request already in process Logs the request if found to be a duplicate.

Parameters:
interest the incoming interest containing the request command
Returns:
true if request is duplicate
boolean org.ccnx.ccn.impl.repo.RepositoryInterestHandler.isWriteSuspended ( Interest  interest  )  [protected]

Check whether new writes are allowed now Logs the discarded request if it cannot be processed.

Parameters:
interest the incoming interest containing the command
Returns:
true if writes are presently suspended
void org.ccnx.ccn.impl.repo.RepositoryInterestHandler.nameEnumeratorResponse ( Interest  interest  ) 

Handle name enumeration requests.

Parameters:
interest 

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:40 2011 for Content-Centric Networking in Java by  doxygen 1.6.3