public abstract class CommandExecutor extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
appHome |
protected ClientConfiguration |
clientConfiguration |
protected String |
conf |
protected String |
configFile
Deprecated.
|
protected CellBaseConfiguration |
configuration |
protected org.slf4j.Logger |
logger |
protected String |
logLevel |
protected boolean |
verbose |
Constructor and Description |
---|
CommandExecutor() |
CommandExecutor(String logLevel,
boolean verbose,
String conf) |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute() |
String |
getConfigFile() |
org.slf4j.Logger |
getLogger() |
String |
getLogLevel() |
boolean |
isVerbose() |
void |
loadCellBaseConfiguration() |
void |
loadClientConfiguration()
This method attempts to first data configuration from CLI parameter, if not present then uses
the configuration from installation directory, if not exists then loads JAR client-configuration.yml.
|
protected void |
makeDir(Path folderPath) |
void |
setConfigFile(String configFile) |
void |
setLogLevel(String logLevel) |
void |
setVerbose(boolean verbose) |
protected String logLevel
protected boolean verbose
protected String conf
@Deprecated protected String configFile
protected String appHome
protected CellBaseConfiguration configuration
protected ClientConfiguration clientConfiguration
protected org.slf4j.Logger logger
public abstract void execute() throws CellbaseException
CellbaseException
public String getLogLevel()
public void setLogLevel(String logLevel)
public boolean isVerbose()
public void setVerbose(boolean verbose)
public String getConfigFile()
public void setConfigFile(String configFile)
public org.slf4j.Logger getLogger()
public void loadCellBaseConfiguration() throws URISyntaxException, IOException
URISyntaxException
IOException
public void loadClientConfiguration() throws IOException
IOException
- If any IO problem occursprotected void makeDir(Path folderPath) throws IOException
IOException
Copyright © 2019. All rights reserved.