Handles interests matching the repository's namespace. More...
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. |
Handles interests matching the repository's namespace.
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.
interest | the incoming interest containing the request command |
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.
interest | the incoming interest containing the command |
void org.ccnx.ccn.impl.repo.RepositoryInterestHandler.nameEnumeratorResponse | ( | Interest | interest | ) |
Handle name enumeration requests.
interest |