mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
09b106eb04
- adding interface class (plasma/crawler/plasmaCrawlWorker.java) for protocol specific crawl-worker threads - moving reusable code into abstract crawl-worker class AbstractCrawlWorker.java - the load method of the worker threads should not be called directly anymore (e.g. by the snippet fetcher) to crawl a page and wait for the result use function plasmaCrawlLoader.loadSync([...]) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2474 6c8d7289-2bf4-0310-a012-ef5d649a1542
21 lines
506 B
Java
21 lines
506 B
Java
package de.anomic.plasma.crawler;
|
|
|
|
import java.io.IOException;
|
|
|
|
import de.anomic.plasma.plasmaCrawlLoaderMessage;
|
|
import de.anomic.plasma.plasmaHTCache;
|
|
|
|
|
|
public interface plasmaCrawlWorker {
|
|
|
|
public static final String threadBaseName = "CrawlerWorker";
|
|
|
|
public void reset();
|
|
public void execute();
|
|
public void execute(plasmaCrawlLoaderMessage theNewMsg);
|
|
public void init();
|
|
|
|
public void close();
|
|
public plasmaHTCache.Entry load() throws IOException;
|
|
}
|