public class FileObjectRegistrationAction
extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
| Constructor and Description |
|---|
FileObjectRegistrationAction()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
performAction(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Perform the action to register the file products.
|
void |
setActions(List<gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction> actions)
Sets a list of crawler actions to perform before file object
registration.
|
void |
setChecksumManifest(Map<File,String> manifest)
Set the map to represent the checksum manifest file.
|
void |
setFileTypes(FileTypes fileTypes)
Set the file type mapping.
|
void |
setGenerateChecksums(boolean value)
Set the flag for checksum generation.
|
public FileObjectRegistrationAction()
registryUrl - url of the registry.ingester - The RegistryIngester.RegistryClientExceptionpublic boolean performAction(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata metadata) throws gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
performAction in class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerActionproduct - The file.metadata - The metadata associated with the file.gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException - If an error occurred while processing
the file objects.public void setActions(List<gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction> actions)
actions - A list of crawler actions.public void setGenerateChecksums(boolean value)
value - 'true' to turn on, 'false' to turn off.public void setChecksumManifest(Map<File,String> manifest)
manifest - A mapping of file objects to checksums.public void setFileTypes(FileTypes fileTypes)
fileTypes - The file type mapping.Copyright © 2010–2018 Planetary Data System. All rights reserved.