public class OrfDayTask extends AbstractDocumentTask<TopicUrlDTO,CrawlerUrlDTO>
crawler, taskResults| Constructor and Description |
|---|
OrfDayTask(MediathekReader aCrawler,
java.util.concurrent.ConcurrentLinkedQueue<CrawlerUrlDTO> aUrlToCrawlDTOs) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractUrlTask<TopicUrlDTO,CrawlerUrlDTO> |
createNewOwnInstance(java.util.concurrent.ConcurrentLinkedQueue<CrawlerUrlDTO> aURLsToCrawl)
In this method you just have to create a new instance of yourself.
|
protected void |
processDocument(CrawlerUrlDTO aUrlDTO,
Document aDocument)
In this method you have to use the JSOUP
Document to create a
object of the return type T. |
processElementgetMaxElementsToProcesscomputeadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkpublic OrfDayTask(MediathekReader aCrawler, java.util.concurrent.ConcurrentLinkedQueue<CrawlerUrlDTO> aUrlToCrawlDTOs)
protected void processDocument(CrawlerUrlDTO aUrlDTO, Document aDocument)
AbstractDocumentTaskDocument to create a
object of the return type T. Add the results to
AbstractRecursivConverterTask.taskResults.processDocument in class AbstractDocumentTask<TopicUrlDTO,CrawlerUrlDTO>aUrlDTO - A DTO containing at least the URL of the given document.aDocument - The JSOUP Document.protected AbstractUrlTask<TopicUrlDTO,CrawlerUrlDTO> createNewOwnInstance(java.util.concurrent.ConcurrentLinkedQueue<CrawlerUrlDTO> aURLsToCrawl)
AbstractRecursivConverterTaskcreateNewOwnInstance in class AbstractRecursivConverterTask<TopicUrlDTO,CrawlerUrlDTO>aURLsToCrawl - The ConcurrentLinkedQueue of D
the new instance should process.