|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.search.core.SearchCoreLauncher
public class SearchCoreLauncher
CLI the Search Core Tool.
Constructor Summary | |
---|---|
SearchCoreLauncher()
Constructor method to initialize all globals. |
Method Summary | |
---|---|
void |
displayHelp()
Displays tool usage. |
void |
displayVersion()
Displays the current version and disclaimer notice. |
void |
execute()
Execute Search Core components depending on the flags specified. |
static void |
main(String[] args)
Main Method to capture CLI arguments. |
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. |
void |
setDefaultConfigHome()
Sets the default for the configuration home directory. |
void |
setDefaultSearchHome()
Sets the default value for the searchHome global. |
void |
setDefaultServiceUrl()
|
void |
setProperties(File propsFile)
Set the properties for a given registry/search-home/etc. |
void |
setSearchHome(String searchHome)
Sets the searchHome global variable after getting its absolute path and ensuring its files existence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchCoreLauncher()
Method Detail |
---|
public final void displayHelp()
public final void displayVersion()
public final org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException
args
- The command-line arguments
org.apache.commons.cli.ParseException
- If there was an error during parsing.
org.apache.commons.cli.ParseException
public final void query(org.apache.commons.cli.CommandLine line) throws Exception
line
- A class representation of the command-line arguments.
Exception
- If there was an error while querying the options that were
set on the command-line.public final void setProperties(File propsFile) throws InvalidOptionException
propsFileList
-
InvalidOptionException
- thrown if file does not existpublic final void setSearchHome(String searchHome) throws InvalidOptionException
searchHome
-
InvalidOptionException
- thrown if directory does not existpublic final void setDefaultSearchHome() throws InvalidOptionException
InvalidOptionException
- thrown if directory does not existpublic final void setDefaultConfigHome()
public final void setDefaultServiceUrl()
public final void execute()
public static void main(String[] args) throws Exception
args
- CLI arguments
Exception
- CLI parsing exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |