public class RetrievalToolConfigParser extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_CONTEXT |
protected static int |
DEFAULT_NUM_THREADS |
protected static int |
DEFAULT_PORT |
Constructor and Description |
---|
RetrievalToolConfigParser()
Creates a parser for command line configuration options.
|
Modifier and Type | Method and Description |
---|---|
protected ConsolePrompt |
getConsole() |
protected String |
getPasswordEnvVariable() |
RetrievalToolConfig |
processCommandLine(String[] args)
Parses command line configuration into an object structure, validates
correct values along the way.
|
protected RetrievalToolConfig |
processOptions(String[] args) |
protected static final int DEFAULT_PORT
protected static final int DEFAULT_NUM_THREADS
protected static final String DEFAULT_CONTEXT
public RetrievalToolConfigParser()
public RetrievalToolConfig processCommandLine(String[] args)
args
- command line configuration valuesprotected RetrievalToolConfig processOptions(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
protected String getPasswordEnvVariable()
protected ConsolePrompt getConsole()
Copyright © 2009–2014 DuraSpace. All rights reserved.