|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.AbstractCrawler
org.eclipse.smila.connectivity.framework.crawler.web.WebCrawler
public class WebCrawler
The WebCrawler class.
| Field Summary | |
|---|---|
static java.lang.String |
POC_AVEREGE_TIME_TO_FETCH
The Constant POC_AVEREGE_TIME_TO_FETCH. |
static java.lang.String |
POC_BYTES
The Constant POC_BYTES. |
static java.lang.String |
POC_PAGES
The Constant POC_PAGES. |
static java.lang.String |
POC_PRODUCER_EXCEPTIONS
The Constant POC_PRODUCER_EXCEPTIONS. |
| Constructor Summary | |
|---|---|
WebCrawler()
Instantiates a new web crawler. |
|
| Method Summary | |
|---|---|
void |
close()
Ends crawl, allowing the Crawler implementation to close any open resources. |
void |
dispose(ConnectivityId id)
Disposes the record with the given Id. |
byte[] |
getAttachment(ConnectivityId id,
java.lang.String name)
Returns the attachment for the given Id and name pair. |
java.lang.String[] |
getAttachmentNames(ConnectivityId id)
Returns an array of String[] containing the names of the available attachments for the given id. |
CrawlerPerformanceCounterHelper<? extends ConnectivityPerformanceAgent> |
getCounterHelper()
|
AnyMap |
getMetadata(ConnectivityId id)
Returns the metadata for the given id. |
DataReference[] |
getNext()
Returns an array of DataReference objects. |
void |
initialize(DataSourceConnectionConfig config)
Initialize. |
void |
setParserManager(ParserManager parserManager)
To be used by Declarative Services. |
void |
unsetParserManager(ParserManager parserManager)
To be used by Declarative Services. |
| Methods inherited from class org.eclipse.smila.connectivity.framework.AbstractCrawler |
|---|
activate, getCrawlerId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String POC_BYTES
public static final java.lang.String POC_PAGES
public static final java.lang.String POC_PRODUCER_EXCEPTIONS
public static final java.lang.String POC_AVEREGE_TIME_TO_FETCH
| Constructor Detail |
|---|
public WebCrawler()
| Method Detail |
|---|
public void initialize(DataSourceConnectionConfig config)
throws CrawlerException,
CrawlerCriticalException
config - the DataSourceConnectionConfig
CrawlerException - the crawler exception
CrawlerCriticalException - the crawler critical exception
public DataReference[] getNext()
throws CrawlerException,
CrawlerCriticalException
CrawlerException - if any error occurs
CrawlerCriticalException - the crawler critical exception
public void close()
throws CrawlerException
CrawlerException - if any error occurs
public AnyMap getMetadata(ConnectivityId id)
throws CrawlerException,
CrawlerCriticalException
id - the record id
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occurs
public byte[] getAttachment(ConnectivityId id,
java.lang.String name)
throws CrawlerException,
CrawlerCriticalException
id - the record idname - the name of the attachment
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occurs
public java.lang.String[] getAttachmentNames(ConnectivityId id)
throws CrawlerException,
CrawlerCriticalException
id - the record id
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occurspublic void dispose(ConnectivityId id)
id - the record idpublic void setParserManager(ParserManager parserManager)
parserManager - ParserManager Service.public void unsetParserManager(ParserManager parserManager)
parserManager - ParserManager Service.public CrawlerPerformanceCounterHelper<? extends ConnectivityPerformanceAgent> getCounterHelper()
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||