|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.eclipse.smila.connectivity.framework.impl.CrawlThread
public class CrawlThread
The Class CrawlThread.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CrawlThread(CrawlerControllerCallback controllerCallback,
CrawlState crawlState,
ConnectivityManager connectivityManager,
DeltaIndexingManager diManager,
CompoundManager compoundManager,
Crawler crawler,
DataSourceConnectionConfig configuration,
java.lang.String jobName)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
cleanupRun()
Close the conversation with the crawler. |
CrawlerPerformanceCounterHelper<? extends ConnectivityPerformanceAgent> |
getCrawlerCounterHelper()
|
protected void |
initializeRun()
initializies the CrawlThread for running. |
protected void |
processDataReference(DataReference dataReference)
process a single data reference object. |
void |
run()
|
void |
stopCrawl()
Stop the execution of this CrawlThread. |
protected void |
updateDataReference(DataReference dataReference)
update a single data reference. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CrawlThread(CrawlerControllerCallback controllerCallback,
CrawlState crawlState,
ConnectivityManager connectivityManager,
DeltaIndexingManager diManager,
CompoundManager compoundManager,
Crawler crawler,
DataSourceConnectionConfig configuration,
java.lang.String jobName)
throws DeltaIndexingException,
CrawlerCriticalException
controllerCallback - the callback to the CrawlerControllercrawlState - the CrawlStateconnectivityManager - the ConnectivityManagerdiManager - the DeltaIndexingManagercompoundManager - the CompoundManagercrawler - the Crawlerconfiguration - the DataSourceConnectionConfigjobName - the job for which to submit the crawled records
DeltaIndexingException - if DeltaIndexing is enabled and no DeltaIndexing session can be initialized
CrawlerCriticalException| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadThread.run()protected void cleanupRun()
protected void initializeRun()
throws DeltaIndexingException,
CrawlerCriticalException
DeltaIndexingException
CrawlerCriticalException
protected void processDataReference(DataReference dataReference)
throws CrawlerCriticalException
dataReference - the data reference object to process
CrawlerCriticalException - a critical exception occurred while processing the data reference
protected void updateDataReference(DataReference dataReference)
throws CrawlerException,
CrawlerCriticalException,
DeltaIndexingSessionException,
DeltaIndexingException
dataReference - the data reference to update
CrawlerException
CrawlerCriticalException
DeltaIndexingSessionException
DeltaIndexingExceptionpublic void stopCrawl()
public CrawlerPerformanceCounterHelper<? extends ConnectivityPerformanceAgent> getCrawlerCounterHelper()
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||