yacy_search_server/source/de/anomic/plasma/crawler/plasmaCrawlWorker.java
theli 09b106eb04 *) next step of restructuring for new crawlers
- 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
2006-09-04 09:00:18 +00:00

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;
}