public class StorageIngestAction
extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
Constructor and Description |
---|
StorageIngestAction(java.net.URL storageServerUrl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
performAction(java.io.File product,
FileObject fileObject,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Perform ingestion of a file object.
|
boolean |
performAction(java.io.File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata metadata)
Perform the action to ingest a product to the PDS Storage service.
|
void |
setDataTransferType(java.lang.String dataTransferType)
Set the data transfer type.
|
public StorageIngestAction(java.net.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(java.io.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 java.lang.String performAction(java.io.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(java.lang.String dataTransferType)
dataTransferType
- Either 'InPlaceProduct' or 'TransferProduct'.Copyright © 2010-2018 Planetary Data System. All Rights Reserved.