T - the result type that can be overriden by FetchResult.public interface Crawler<T extends FetchResult>
| Modifier and Type | Method and Description |
|---|---|
void |
process(String... seedUrl)
Starts the crawler, starting by the seedURL.
|
void |
setup(int fetches,
Extractor<T> extractor,
ResultWriter<T> writer)
Setups this crawler.
|
void setup(int fetches,
Extractor<T> extractor,
ResultWriter<T> writer)
throws IOException
fetches - how many maximum fetches it should do.extractor - the given Extractor to extract a
FetchResult.writer - the ResultWriter to write the result to a sink.IOExceptionvoid process(String... seedUrl) throws InterruptedException, ExecutionException
Copyright © 2016. All rights reserved.