gov.nasa.pds.harvest
Class HarvestLauncher

java.lang.Object
  extended by gov.nasa.pds.harvest.HarvestLauncher
All Implemented Interfaces:
HarvestFlags

public class HarvestLauncher
extends Object
implements HarvestFlags

Wrapper class of the Harvest tool that handles the command-line processing.

Author:
mcayanan

Field Summary
 
Fields inherited from interface gov.nasa.pds.harvest.commandline.options.HarvestFlags
ARGNAME, HELP, LOG, LONG, PASSWORD, REPORT, SHORT, USERNAME, VERSION, WHATIS_HELP, WHATIS_LOG, WHATIS_PASSWORD, WHATIS_REPORT, WHATIS_USERNAME, WHATIS_VERSION
 
Constructor Summary
HarvestLauncher()
          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 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

HarvestLauncher

public HarvestLauncher()
Default constructor.

Method Detail

parse

public org.apache.commons.cli.CommandLine parse(String[] args)
                                         throws org.apache.commons.cli.ParseException,
                                                InvalidOptionException
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
InvalidOptionException

query

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

Parameters:
line - A class representation of the command-line arguments.
Throws:
Exception

displayVersion

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

Throws:
IOException

displayHelp

public void displayHelp()
Displays tool usage.


main

public static void main(String[] args)


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