gov.nasa.pds.harvest.pdap
Class HarvestPdapLauncher

java.lang.Object
  extended by gov.nasa.pds.harvest.pdap.HarvestPdapLauncher

public class HarvestPdapLauncher
extends Object

Wrapper class to the Harvest-PDAP Tool. Class handles command-line processing as well as reading of the policy config file.

Author:
mcayanan

Constructor Summary
HarvestPdapLauncher()
          Default constructor.
 
Method Summary
 void displayHelp()
          Displays tool usage.
 void displayVersion()
          Displays the current version and disclaimer notice.
static void main(String[] args)
           
 org.apache.commons.cli.CommandLine parse(String[] args)
          A method to parse the command-line arguments.
 void query(org.apache.commons.cli.CommandLine line)
          Examines the command-line arguments passed into the Harvest-PDAP Tool and takes the appropriate action based on what flags were set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestPdapLauncher

public HarvestPdapLauncher()
Default constructor.

Method Detail

displayVersion

public final void displayVersion()
Displays the current version and disclaimer notice.


displayHelp

public final void displayHelp()
Displays tool usage.


parse

public final org.apache.commons.cli.CommandLine parse(String[] args)
                                               throws org.apache.commons.cli.ParseException
A method to parse the command-line arguments.

Parameters:
args - The command-line arguments
Returns:
A class representation of the command-line arguments
Throws:
org.apache.commons.cli.ParseException - If there was an error during parsing.

query

public final void query(org.apache.commons.cli.CommandLine line)
                 throws Exception
Examines the command-line arguments passed into the Harvest-PDAP Tool and takes the appropriate action based on what flags were set.

Parameters:
line - A class representation of the command-line arguments.
Throws:
Exception - If there was an error while querying the options that were set on the command-line.

main

public static void main(String[] args)


Copyright © 2010-2014 Planetary Data System. All Rights Reserved.