public class SearchCoreLauncher extends Object
Constructor and Description |
---|
SearchCoreLauncher()
Constructor method to initialize all globals.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SearchCoreLauncher()
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 argumentsorg.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()
Copyright © 2010–2018 Planetary Data System. All rights reserved.