public class ScrapeThread extends Thread
BMUSEScraper,
ScrapeStateThread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ScrapeThread(BMUSEScraper scraper,
ScrapeState scrapeState,
int waitTime,
int contextVersion)
Sets up a thread for actually scrapping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFileWritten() |
void |
run() |
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, yieldpublic ScrapeThread(BMUSEScraper scraper, ScrapeState scrapeState, int waitTime, int contextVersion)
scraper - Scraper that will actually do the scraping.scrapeState - Object that maintains state across threads.waitTime - How long (in seconds) thread should wait after scraping
page before attempting new page.contextVersion - The context URL used is 'https://bioschemas.org/crawl/CONTEXTVERSION/ID' Where ID is the id of the CrawlRecord pulled.Copyright © 2025. All rights reserved.