public abstract class ProductCrawler extends ProductCrawlerBean
Modifier and Type | Field and Description |
---|---|
protected CrawlerActionRepo |
actionRepo |
protected static FileFilter |
DIR_FILTER |
protected static FileFilter |
FILE_FILTER |
protected Ingester |
ingester |
protected List<IngestStatus> |
ingestStatus |
protected static Logger |
LOG |
FILE_LOCATION, FILE_SIZE, FILENAME, MIME_TYPE, PRODUCT_ID, PRODUCT_NAME, PRODUCT_RECEVIED_TIME, PRODUCT_STRUCTURE, PRODUCT_TYPE
Constructor and Description |
---|
ProductCrawler() |
Modifier and Type | Method and Description |
---|---|
void |
crawl() |
void |
crawl(File dirRoot) |
List<IngestStatus> |
getIngestStatus() |
protected abstract Metadata |
getMetadataForProduct(File product) |
IngestStatus |
handleFile(File product) |
protected abstract boolean |
passesPreconditions(File product) |
protected abstract File |
renameProduct(File product,
Metadata productMetadata) |
getActionIds, getApplicationContext, getClientTransferer, getDaemonPort, getDaemonWait, getFilemgrUrl, getGlobalMetadata, getId, getProductPath, getRequiredMetadata, isCrawlForDirs, isNoRecur, isSkipIngest, setActionIds, setApplicationContext, setClientTransferer, setCrawlForDirs, setDaemonPort, setDaemonWait, setFilemgrUrl, setGlobalMetadata, setId, setNoRecur, setProductPath, setRequiredMetadata, setSkipIngest
protected static Logger LOG
protected static FileFilter DIR_FILTER
protected static FileFilter FILE_FILTER
protected List<IngestStatus> ingestStatus
protected CrawlerActionRepo actionRepo
protected Ingester ingester
public void crawl()
public void crawl(File dirRoot)
public IngestStatus handleFile(File product)
public List<IngestStatus> getIngestStatus()
protected abstract boolean passesPreconditions(File product)
protected abstract Metadata getMetadataForProduct(File product) throws Exception
Exception
Copyright © 1999–2017 Apache OODT. All rights reserved.