Class FileObjectRegistrationAction
- java.lang.Object
- 
- gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
- 
- gov.nasa.pds.harvest.search.crawler.actions.FileObjectRegistrationAction
 
 
- 
- All Implemented Interfaces:
- gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType
 
 public class FileObjectRegistrationAction extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerActionClass to register file objects.- Author:
- mcayanan
 
- 
- 
Constructor SummaryConstructors Constructor Description FileObjectRegistrationAction()Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanperformAction(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)Perform the action to register the file products.voidsetActions(List<gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction> actions)Sets a list of crawler actions to perform before file object registration.voidsetChecksumManifest(Map<File,String> manifest)Set the map to represent the checksum manifest file.voidsetFileTypes(FileTypes fileTypes)Set the file type mapping.voidsetGenerateChecksums(boolean value)Set the flag for checksum generation.
 
- 
- 
- 
Method Detail- 
performActionpublic boolean performAction(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata metadata) throws gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException Perform the action to register the file products.- Specified by:
- performActionin class- gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
- Parameters:
- product- The file.
- metadata- The metadata associated with the file.
- Returns:
- Always returns true.
- Throws:
- gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException- If an error occurred while processing the file objects.
 
 - 
setActionspublic void setActions(List<gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction> actions) Sets a list of crawler actions to perform before file object registration.- Parameters:
- actions- A list of crawler actions.
 
 - 
setGenerateChecksumspublic void setGenerateChecksums(boolean value) Set the flag for checksum generation.- Parameters:
- value- 'true' to turn on, 'false' to turn off.
 
 - 
setChecksumManifestpublic void setChecksumManifest(Map<File,String> manifest) Set the map to represent the checksum manifest file.- Parameters:
- manifest- A mapping of file objects to checksums.
 
 - 
setFileTypespublic void setFileTypes(FileTypes fileTypes) Set the file type mapping.- Parameters:
- fileTypes- The file type mapping.
 
 
- 
 
-