
mServer.crawler.sender.orf.tasks.AbstractUrlTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MServer Show documentation
Show all versions of MServer Show documentation
The crawler for mediathekview/MediathekView
package mServer.crawler.sender.orf.tasks;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.RecursiveTask;
import mServer.crawler.sender.MediathekReader;
import mServer.crawler.sender.orf.CrawlerUrlDTO;
/**
* This task is based on {@link RecursiveTask} and takes a
* {@link ConcurrentLinkedQueue} of {@link D}. It splits the URLs on instances
* of it self based on the crawler configuration and calls the
* {@link this#processUrl(CrawlerUrlDTO)} for each.
*
* @author Nicklas Wiegandt (Nicklas2751)
* Mail: [email protected]
* Jabber: [email protected]
* Riot.im: nicklas2751:matrix.elaon.de
*
* @param The type of objects which will be created from this task.
* @param A sub type of {@link CrawlerUrlDTO} which this task will use to
* create the result objects.
*/
public abstract class AbstractUrlTask
extends AbstractRecursivConverterTask {
private static final long serialVersionUID = -4077156510484515410L;
public AbstractUrlTask(final MediathekReader aCrawler,
final ConcurrentLinkedQueue aUrlToCrawlDTOs) {
super(aCrawler, aUrlToCrawlDTOs);
}
@Override
protected Integer getMaxElementsToProcess() {
return 100;
}
@Deprecated
protected void processElement(final D aDTO) {
processElement(aDTO);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy