gov.nasa.pds.transport
Class ZipSizeDirHandler

java.lang.Object
  extended by gov.nasa.pds.transport.AbstractPdsGetHandler
      extended by gov.nasa.pds.transport.ZipSizeDirHandler
All Implemented Interfaces:
org.apache.oodt.product.handlers.ofsn.metadata.OFSNMetKeys, org.apache.oodt.product.handlers.ofsn.OFSNGetHandler

public class ZipSizeDirHandler
extends AbstractPdsGetHandler

Handler that returns the total size of all files contained in a product directory, i.e. the full (expanded) content of the directory that would be returned from a PDS_ZIPD request.

Author:
cinquini

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
ZipSizeDirHandler()
           
 
Method Summary
protected  File getOutputFile(String inputDirPath)
          Method to generate the requested product from the given target.
static void main(String[] args)
          Debug method
 
Methods inherited from class gov.nasa.pds.transport.AbstractPdsGetHandler
configure, getCache, getConfiguration, retrieveChunk, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG
Constructor Detail

ZipSizeDirHandler

public ZipSizeDirHandler()
Method Detail

getOutputFile

protected File getOutputFile(String inputDirPath)
                      throws org.apache.oodt.product.ProductException
Description copied from class: AbstractPdsGetHandler
Method to generate the requested product from the given target. Must be implemented by subclasses.

Specified by:
getOutputFile in class AbstractPdsGetHandler
Returns:
outputFile
Throws:
org.apache.oodt.product.ProductException

main

public static void main(String[] args)
                 throws org.apache.oodt.product.ProductException,
                        IOException
Debug method

Parameters:
args -
Throws:
org.apache.oodt.product.ProductException
IOException


Copyright © 2010–2014 Planetary Data System. All rights reserved.