Like ObjectPathfinder, this subclass searches for a content object with a specific postfix along the path from a starting point to a stopping point. More...
Public Member Functions | |
LatestVersionPathfinder (ContentName startingPoint, ContentName stoppingPoint, ContentName desiredPostfix, boolean closestOnPath, boolean goneOK, int timeout, Set< ContentName > searchedPathCache, CCNHandle handle) throws IOException | |
synchronized SearchResults | waitForResults () |
Like ObjectPathfinder, this subclass searches for a content object with a specific postfix along the path from a starting point to a stopping point.
We can search for matching content that is either closest or furthest from the starting point.
When the closest (or furthest) matching content object is found, LatestVersionPathfinder retrieves the latest version of that object. If the latest version is not GONE (or if goneOK is True), the latest version is returned. Otherwise, we update the starting point or stopping point (depending on _closestOnPath) and start a new search if the new range is non empty.