gov.nasa.pds.harvest.crawler
Class BundleCrawler

java.lang.Object
  extended by gov.nasa.jpl.oodt.cas.crawl.config.ProductCrawlerBean
      extended by gov.nasa.jpl.oodt.cas.crawl.ProductCrawler
          extended by gov.nasa.pds.harvest.crawler.PDSProductCrawler
              extended by gov.nasa.pds.harvest.crawler.CollectionCrawler
                  extended by gov.nasa.pds.harvest.crawler.BundleCrawler
All Implemented Interfaces:
gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType, gov.nasa.jpl.oodt.cas.filemgr.metadata.CoreMetKeys

public class BundleCrawler
extends CollectionCrawler

A crawler class for a PDS Bundle file.

Author:
mcayanan

Field Summary
 
Fields inherited from class gov.nasa.pds.harvest.crawler.PDSProductCrawler
inPersistanceMode, touchedFiles
 
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.ProductCrawler
DIR_FILTER, FILE_FILTER, LOG
 
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.config.ProductCrawlerBean
MIME_TYPES_HIERARCHY
 
Fields inherited from interface gov.nasa.jpl.oodt.cas.filemgr.metadata.CoreMetKeys
FILE_LOCATION, FILENAME, MIME_TYPE, PRODUCT_ID, PRODUCT_NAME, PRODUCT_RECEVIED_TIME, PRODUCT_STRUCTURE, PRODUCT_TYPE
 
Constructor Summary
BundleCrawler(Pds4MetExtractorConfig extractorConfig)
          Constructor.
 
Method Summary
 void crawl(File bundle)
          Crawl a PDS4 bundle file.
 
Methods inherited from class gov.nasa.pds.harvest.crawler.PDSProductCrawler
addAction, addActions, addKnownMetadata, getActions, getMetadataForProduct, getMetExtractorConfig, getRegistryIngester, getRegistryUrl, passesPreconditions, setDirectoryFilter, setFileFilter, setInPersistanceMode, setMetExtractorConfig, setProperties, setRegistryUrl
 
Methods inherited from class gov.nasa.jpl.oodt.cas.crawl.ProductCrawler
clearIngestStatus, crawl, getIngestStatus, handleFile, setActionRepo
 
Methods inherited from class gov.nasa.jpl.oodt.cas.crawl.config.ProductCrawlerBean
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleCrawler

public BundleCrawler(Pds4MetExtractorConfig extractorConfig)
Constructor.

Parameters:
extractorConfig - A configuration object for the metadata extractor.
Method Detail

crawl

public void crawl(File bundle)
Crawl a PDS4 bundle file. The bundle will be registered first, then the method will proceed to crawling the collection file it points to.

Overrides:
crawl in class CollectionCrawler
Parameters:
bundle - The PDS4 bundle file.
Throws:
InventoryReaderException


Copyright © 2010–2014 Planetary Data System. All rights reserved.