public interface Ingester
An interface for ingesting Products
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasProduct(URL fmUrl,
File prodFile)
|
boolean |
hasProduct(URL fmUrl,
String productName)
Checks the file manager at the given
URL to see whether or not it
knows about the provided Product with the given
productName parameter. |
String |
ingest(URL fmUrl,
File prodFile,
Metadata met)
Ingests a
Product to the file manager service object identified
by the given URL parameter. |
String |
ingest(URL fmUrl,
File prodFile,
MetExtractor extractor,
File metConfFile)
Ingests a
Product to the file manager service object identified
by the given URL parameter. |
void |
ingest(URL fmUrl,
List<String> prodFiles,
MetExtractor extractor,
File metConfFile) |
String ingest(URL fmUrl, File prodFile, MetExtractor extractor, File metConfFile) throws IngestException
Product to the file manager service object identified
by the given URL parameter. The product Metadata is
extracted dynamically using the provided MetExtractor interface.fmUrl - The URL pointer to the file manager service.prodFile - The File pointer to the product file.extractor - The given MetExtractor to use to extract
Metadata from the Product.metConfFile - A ConfigFile for the MetExtractor.IngestException - If there is an error ingesting the ProductString ingest(URL fmUrl, File prodFile, Metadata met) throws IngestException
Product to the file manager service object identified
by the given URL parameter. The product Metadata is
provided a priori.fmUrl - The URL pointer to the file manager service.prodFile - The File pointer to the product file.met - The given Metadata object already extracted from the
Product.IngestException - If there is an error ingesting the Productvoid ingest(URL fmUrl, List<String> prodFiles, MetExtractor extractor, File metConfFile)
fmUrl - The URL pointer to the file manager service.prodFiles - A List of String filePaths pointing to
Product files to ingest.extractor - The given MetExtractor to use to extract
Metadata from the Products.metConfFile - A ConfigFile for the MetExtractor.IngestException - If there is an error ingesting the Products.boolean hasProduct(URL fmUrl, File prodFile) throws CatalogException
URL to see whether or not it
knows about the provided Product File parameter. To do
this, it uses File.getName() as the Metadata key
Filename.prodFile - The File to check for existance of within the file
manager at given URL.CatalogExceptionboolean hasProduct(URL fmUrl, String productName) throws CatalogException
URL to see whether or not it
knows about the provided Product with the given
productName parameter. To do this, it uses the provided
productName key as the Metadata key to search for
in the catalog.fmUrl - The URL pointer to the file manager service.productName - The Product to search for, identified by its (possibly
not unique) name.CatalogExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.