An implementation of the Ingster interface that uses the following
pieces of Metadata information to determine how to ingest a
Product:
Filename - The name of the Product file to ingest.
ProductType - The type of the Product to ingest.
FileLocation - A full path pointer to directory containing the Product
file to ingest.
The Ingester supports overriding certain Product properties,
including:
Specification of ProductStructure parameter that will
tell the Ingester whether or not the Product is a directory
or a regular file.
Specification of ProductName parameter that will tell the
Ingester a name for the Product to use (default is using the
specified Metadata field, Filename.
.
Author:
mattmann, bfoster
Field Summary
Fields inherited from interface org.apache.oodt.cas.filemgr.metadata.CoreMetKeys
hasProduct(URL fmUrl,
File prodFile)
Checks the file manager at the given URL to see whether or not it
knows about the provided ProductFile parameter.
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.
ingest(URL fmUrl,
File prodFile,
MetExtractor extractor,
File metConfFile)
Ingests a Product to the file manager service object identified
by the given URL parameter.
Ingests a Product to the file manager service object identified
by the given URL parameter. The product Metadata is
extracted dynamically using the provided MetExtractor interface.
Checks the file manager at the given URL to see whether or not it
knows about the provided ProductFile parameter. To do
this, it uses File.getName() as the Metadata key
Filename.
Checks the file manager at the given 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.