public class StorageIngester extends Object
Constructor and Description |
---|
StorageIngester(URL storageServerUrl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient |
getFMClient()
Returns the File Manager client.
|
org.apache.oodt.cas.filemgr.structs.Product |
getProductById(String productId)
Gets a product by given product id
|
org.apache.oodt.cas.filemgr.structs.Product |
getProductByName(String productName)
Gets a product by given name
|
String |
ingestToStorage(CatalogObject catObj)
Ingests a file object and gets a product id from the storage server.
|
void |
setProductName(String productName)
Sets the product name for the storage service
|
public StorageIngester(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 void setProductName(String productName)
public org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient getFMClient()
public String ingestToStorage(CatalogObject catObj)
product
- The file associated with the given file object.fileObject
- The file object to ingest.metadata
- The metadata associated with the given file.public org.apache.oodt.cas.filemgr.structs.Product getProductById(String productId)
productId
- The ID of the productpublic org.apache.oodt.cas.filemgr.structs.Product getProductByName(String productName)
productName
- The name of the productCopyright © 2010–2017 Planetary Data System. All rights reserved.