public class StorageIngestAction
extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
Constructor and Description |
---|
StorageIngestAction(URL storageServerUrl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
performAction(File product,
FileObject fileObject,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Perform ingestion of a file object.
|
boolean |
performAction(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Perform the action to ingest a product to the PDS Storage service.
|
void |
setDataTransferType(String dataTransferType)
Set the data transfer type.
|
public StorageIngestAction(URL storageServerUrl) throws org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
storageServerUrl
- URL to the PDS storage server.org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
- If there was an error connecting to the
Storage Service.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 registered product.metadata
- The metadata associated with the given product.gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
public String performAction(File product, FileObject fileObject, gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
product
- The file associated with the given file object.fileObject
- The file object to ingest.metadata
- The metadata associated with the given file.public void setDataTransferType(String dataTransferType)
dataTransferType
- Either 'InPlaceProduct' or 'TransferProduct'.Copyright © 2010–2016 Planetary Data System. All rights reserved.