|
SMILA (incubation) 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.jdbc.JdbcCrawler
public class JdbcCrawler
The Class JdbcCrawler. Instances of this class can be used to crawl JDBC datasources. Clients can access the
retrieved data via the methods defined in the Crawler-Interface.
The DataSourceConnectionConfig passed in the initialize()-Method must comply to the Schema defined in
JdbcDataSourceConnectionConfigSchema.xsd.
| Field Summary | |
|---|---|
static java.lang.String |
POC_DATA_ROWS_RETRIEVED
Name used for the CrawlerPerformanceCounters property logging the number of retrieved database rows. |
| Constructor Summary | |
|---|---|
JdbcCrawler()
Standard constructor of JdbcCrawler. |
|
| Method Summary | |
|---|---|
void |
close()
This method should be called by clients after completing their work with the JdbcCrawler can release its
JDBC- and other resources. |
void |
dispose(Id id)
Disposes the record with the given Id. |
byte[] |
getAttachment(Id id,
java.lang.String name)
Returns the attachment for the given Id and name pair. |
java.lang.String[] |
getAttachmentNames(Id id)
Returns an array of String[] containing the names of the available attachments for the given id. |
MObject |
getMObject(Id id)
Returns the MObject for the given id. |
DataReference[] |
getNext()
Returns an array of DataReference objects. |
java.lang.Thread |
getProducerThread()
|
void |
initialize(DataSourceConnectionConfig config)
Initialize. |
| 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_DATA_ROWS_RETRIEVED
CrawlerPerformanceCounters property logging the number of retrieved database rows.
| Constructor Detail |
|---|
public JdbcCrawler()
JdbcCrawler.
| Method Detail |
|---|
public void close()
JdbcCrawler can release its
JDBC- and other resources. If the method is called before the CrawlingProducerThread terminates, the thread
will terminate after evaluating the _forceClosing-flag the next time which is set by the close()-Method.
public java.lang.Thread getProducerThread()
CrawlingProducerThread
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 exceptionCrawler.getNext()public void dispose(Id id)
id - the record idCrawlerCallback.dispose(org.eclipse.smila.datamodel.id.Id)
public byte[] getAttachment(Id 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 occursCrawlerCallback.getAttachment(org.eclipse.smila.datamodel.id.Id,
java.lang.String)
public java.lang.String[] getAttachmentNames(Id id)
throws CrawlerException,
CrawlerCriticalException
id - the record id
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occursCrawlerCallback.getAttachmentNames(org.eclipse.smila.datamodel.id.Id)
public MObject getMObject(Id id)
throws CrawlerException,
CrawlerCriticalException
id - the record id
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occursCrawlerCallback.getMObject(org.eclipse.smila.datamodel.id.Id)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||