|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
gov.nasa.pds.harvest.crawler.actions.FileObjectRegistrationAction
public class FileObjectRegistrationAction
Class to register file objects.
Field Summary |
---|
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
---|
LOG, phases |
Constructor Summary | |
---|---|
FileObjectRegistrationAction(String registryUrl,
RegistryIngester ingester)
Constructor. |
Method Summary | |
---|---|
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 |
setGenerateChecksums(boolean value)
Set the flag for checksum generation. |
Methods inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
---|
getDescription, getId, getPhases, setDescription, setId, setPhases |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileObjectRegistrationAction(String registryUrl, RegistryIngester ingester)
registryUrl
- url of the registry.ingester
- The RegistryIngester.
gov.nasa.pds.registry.exception.RegistryClientException
Method Detail |
---|
public 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.CrawlerAction
product
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |