|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.transport.AbstractPdsGetHandler
public abstract class AbstractPdsGetHandler
Abstract superclass of OFSN handlers that generate PDS products. Each subclass should: 1) define the mime type of the output file it generates, specified in the handler XML configuration 2) implement the specific process to generate the output file from the input file in the method getOutputFile()
Field Summary | |
---|---|
protected static Logger |
LOG
|
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.OFSNMetKeys |
---|
GET_CMD, LISTING_CMD, OFSN_COMPUTE_DIR_SIZE, OFSN_COMPUTE_FILE_SIZE, OFSN_XML_CONF_FILE_KEY |
Constructor Summary | |
---|---|
AbstractPdsGetHandler()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOG
Constructor Detail |
---|
public AbstractPdsGetHandler()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |