public abstract class ProductCrawler
extends gov.nasa.jpl.oodt.cas.crawl.config.ProductCrawlerBean
An abstract base class for Product Crawling. This class provides methods to communicate with the file manager and parse met files that show how to ingest a particular Product into the File Manager.
Modifier and Type | Field and Description |
---|---|
protected FileFilter |
DIR_FILTER |
protected FileFilter |
FILE_FILTER |
protected static Logger |
LOG |
Constructor and Description |
---|
ProductCrawler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addKnownMetadata(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata) |
void |
clearIngestStatus() |
void |
crawl() |
void |
crawl(File dirRoot) |
protected ExtrinsicObject |
createProduct(gov.nasa.jpl.oodt.cas.metadata.Metadata metadata,
File prodFile)
Create the Product object.
|
protected boolean |
generateDoc(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata) |
List<gov.nasa.jpl.oodt.cas.crawl.status.IngestStatus> |
getIngestStatus() |
protected abstract gov.nasa.jpl.oodt.cas.metadata.Metadata |
getMetadataForProduct(File product) |
SearchDocGenerator |
getSearchDocGenerator() |
protected void |
handleFile(File product) |
protected abstract boolean |
passesPreconditions(File product) |
void |
setActionRepo(gov.nasa.jpl.oodt.cas.crawl.action.CrawlerActionRepo repo) |
void |
setSearchDocGenerator(SearchDocGenerator generator) |
addRequiredMetadata, getActionIds, getApplicationContext, getDaemonPort, getDaemonWait, getFilemgrUrl, getGlobalMetadata, getId, getIngester, getProductPath, getRequiredMetadata, isCrawlForDirs, isNoRecur, isSkipIngest, setActionIds, setApplicationContext, setCrawlForDirs, setDaemonPort, setDaemonWait, setFilemgrUrl, setGlobalMetadata, setId, setIngester, setNoRecur, setProductPath, setRequiredMetadata, setSkipIngest
protected static Logger LOG
protected FileFilter DIR_FILTER
protected FileFilter FILE_FILTER
public void crawl()
public void crawl(File dirRoot)
public List<gov.nasa.jpl.oodt.cas.crawl.status.IngestStatus> getIngestStatus()
public void clearIngestStatus()
protected void addKnownMetadata(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata)
protected void handleFile(File product)
protected ExtrinsicObject createProduct(gov.nasa.jpl.oodt.cas.metadata.Metadata metadata, File prodFile)
metadata
- A class representation of the metdata.protected boolean generateDoc(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata)
protected abstract boolean passesPreconditions(File product)
protected abstract gov.nasa.jpl.oodt.cas.metadata.Metadata getMetadataForProduct(File product)
public void setActionRepo(gov.nasa.jpl.oodt.cas.crawl.action.CrawlerActionRepo repo)
public SearchDocGenerator getSearchDocGenerator()
public void setSearchDocGenerator(SearchDocGenerator generator)
Copyright © 2010–2018 Planetary Data System. All rights reserved.