public abstract class AbstractPdsGetHandler extends Object implements org.apache.oodt.product.handlers.ofsn.OFSNGetHandler, org.apache.oodt.product.handlers.ofsn.metadata.OFSNMetKeys
Constructor and Description |
---|
AbstractPdsGetHandler() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Properties properties)
Configuration method sets the temporary cache directory.
|
protected File |
getCache()
Returns the directory where products are created.
|
protected org.apache.oodt.product.handlers.ofsn.OFSNFileHandlerConfiguration |
getConfiguration()
Returns the overall configuration read from file 'ofsn-ps.xml'.
|
protected abstract File |
getOutputFile(String inputFilePath)
Method to generate the requested product from the given target.
|
byte[] |
retrieveChunk(String inputFilePath,
long offset,
int length)
Method that returns the generated product, piece by piece.
|
long |
sizeOf(String inputFilePath)
Method to establish the size of the product to be returned.
|
protected static final Logger LOG
public void configure(Properties properties)
configure
in interface org.apache.oodt.product.handlers.ofsn.OFSNGetHandler
public byte[] retrieveChunk(String inputFilePath, long offset, int length) throws org.apache.oodt.product.ProductException
retrieveChunk
in interface org.apache.oodt.product.handlers.ofsn.OFSNGetHandler
org.apache.oodt.product.ProductException
public long sizeOf(String inputFilePath)
sizeOf
in interface org.apache.oodt.product.handlers.ofsn.OFSNGetHandler
protected File getCache()
protected org.apache.oodt.product.handlers.ofsn.OFSNFileHandlerConfiguration getConfiguration()
protected abstract File getOutputFile(String inputFilePath) throws org.apache.oodt.product.ProductException
inputFile
- org.apache.oodt.product.ProductException
Copyright © 2010–2016 Planetary Data System. All rights reserved.