gov.nasa.pds.harvest.crawler
Class PDS3ProductCrawler

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.PDS3ProductCrawler
All Implemented Interfaces:
gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType, gov.nasa.jpl.oodt.cas.filemgr.metadata.CoreMetKeys

public class PDS3ProductCrawler
extends PDSProductCrawler

Class to crawl PDS3 data products.

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
PDS3ProductCrawler()
           
 
Method Summary
protected  gov.nasa.jpl.oodt.cas.metadata.Metadata getMetadataForProduct(File product)
          Extracts metadata from the given product.
 Pds3MetExtractorConfig getPDS3MetExtractorConfig()
          Gets the PDS3 metextractor configuration object.
protected  boolean passesPreconditions(File product)
          Determines whether the supplied file passes the necessary pre-conditions for the file to be registered.
 void setPDS3MetExtractorConfig(Pds3MetExtractorConfig config)
          Sets the PDS3 metextractor configuration.
 
Methods inherited from class gov.nasa.pds.harvest.crawler.PDSProductCrawler
addAction, addActions, addKnownMetadata, crawl, getActions, getMetExtractorConfig, getRegistryIngester, getRegistryUrl, 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

PDS3ProductCrawler

public PDS3ProductCrawler()
Method Detail

getPDS3MetExtractorConfig

public Pds3MetExtractorConfig getPDS3MetExtractorConfig()
Gets the PDS3 metextractor configuration object.

Returns:
Return the configuration object.

setPDS3MetExtractorConfig

public void setPDS3MetExtractorConfig(Pds3MetExtractorConfig config)
Sets the PDS3 metextractor configuration.

Parameters:
config - A configuration object.

getMetadataForProduct

protected gov.nasa.jpl.oodt.cas.metadata.Metadata getMetadataForProduct(File product)
Extracts metadata from the given product.

Overrides:
getMetadataForProduct in class PDSProductCrawler
Parameters:
product - A PDS file.
Returns:
A Metadata object, which holds metadata from the product.

passesPreconditions

protected boolean passesPreconditions(File product)
Determines whether the supplied file passes the necessary pre-conditions for the file to be registered.

Overrides:
passesPreconditions in class PDSProductCrawler
Parameters:
product - A file.
Returns:
true if the file passes.


Copyright © 2010-2013 Planetary Data System. All Rights Reserved.