|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fuberlin.wiwiss.marbles.loading.DereferencerBatch
public class DereferencerBatch
Starting with one URL, the DereferencerBatch handles the nested retrieval of data by following known predicates in retrieved data, and processing retrieval results with data providers.
Constructor Summary | |
---|---|
DereferencerBatch(CacheController cacheController,
DereferencingTaskQueue uriQueue,
java.util.Collection<DataProvider> dataProviders,
org.openrdf.model.Resource mainResource,
int maxSteps)
Constructs a new DereferencerBatch |
Method Summary | |
---|---|
void |
dereferenced(DereferencingResult result)
Called by DereferencerThread once data has been retrieved. |
java.util.List<org.apache.commons.httpclient.URI> |
getRetrievedURLs()
|
boolean |
hasPending()
Determines whether any requests are pending |
boolean |
hasPending(int maxLevel)
Determines whether requests are pending below a specified step level |
void |
loadURL(org.apache.commons.httpclient.URI url,
int step,
int redirectCount,
boolean forceReload)
Loads URL if not yet loaded |
void |
processLinks(int step,
org.openrdf.model.Resource... contexts)
Identifies known links from loaded data and submits them to
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DereferencerBatch(CacheController cacheController, DereferencingTaskQueue uriQueue, java.util.Collection<DataProvider> dataProviders, org.openrdf.model.Resource mainResource, int maxSteps)
DereferencerBatch
cacheController
- uriQueue
- dataProviders
- mainResource
- maxSteps
- Method Detail |
---|
public void loadURL(org.apache.commons.httpclient.URI url, int step, int redirectCount, boolean forceReload) throws org.apache.commons.httpclient.URIException
url
- The URL to loadstep
- The distance from the focal resourceredirectCount
- The number of redirects performed in the course of this individual requestforceReload
- Set this to true if the URL should be loaded even if a valid copy is already in the cache
org.apache.commons.httpclient.URIException
public boolean hasPending(int maxLevel)
maxLevel
- Maximum step level to consider
public boolean hasPending()
public void dereferenced(DereferencingResult result)
DereferencerThread
once data has been retrieved.
Handles insertion into cache, processes redirects, and initiates following of known links
for the retrieved URL using processLinks(int, Resource...)
dereferenced
in interface DereferencingListener
public void processLinks(int step, org.openrdf.model.Resource... contexts)
loadURL(URI, int, int, boolean)
step
- Current step levelcontexts
- Contexts that are to be considered to find linkspublic java.util.List<org.apache.commons.httpclient.URI> getRetrievedURLs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |