public class SyncOptimizeConfigParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTEXT |
protected static int |
DEFAULT_NUM_FILES |
protected static int |
DEFAULT_PORT |
protected static int |
DEFAULT_SIZE_FILES |
Constructor and Description |
---|
SyncOptimizeConfigParser()
Creates a parser for command line configuration options.
|
Modifier and Type | Method and Description |
---|---|
protected ConsolePrompt |
getConsole() |
protected String |
getPasswordEnvVariable() |
SyncOptimizeConfig |
processCommandLine(String[] args)
Parses command line configuration into an object structure, validates
correct values along the way.
|
protected SyncOptimizeConfig |
processOptions(String[] args) |
protected static final int DEFAULT_PORT
public static final String DEFAULT_CONTEXT
protected static final int DEFAULT_NUM_FILES
protected static final int DEFAULT_SIZE_FILES
public SyncOptimizeConfigParser()
public SyncOptimizeConfig processCommandLine(String[] args)
args
- command line configuration valuesprotected SyncOptimizeConfig 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.