public abstract class DatabaseCommand extends CLICommand
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DB_HOST_DEFAULT |
protected static String |
DB_PASSWORDFILE |
protected static String |
DB_TYPE_DEFAULT |
protected static String |
DB_USER |
protected String |
dbHost |
protected File |
dbLocation |
protected DBManager |
dbManager |
protected String |
dbPort |
protected String |
dbType |
protected ClassPathBuilder |
sClasspath |
protected ClassPathBuilder |
sDatabaseClasspath |
protected File |
sInstallRoot |
protected File |
sJavaHome |
argv, ASADMIN, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, lineReader, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, terminal, WARNING| Constructor and Description |
|---|
DatabaseCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getJavaExe()
Computes the java executable location from
sJavaHome. |
protected String[] |
pingDatabaseCmd(boolean bRedirect)
Defines the command to ping the database.
|
protected void |
prepareProcessExecutor()
Prepare variables to invoke start/ping database command.
|
buildLineReader, buildTerminal, checkHelp, closeTerminal, execute, execute, executeCommand, expandManPage, getBooleanOption, getBriefCommandUsage, getCommand, getCommand, getCommandScope, getCommandUsage, getManPage, getName, getOperandModel, getOption, getOptions, getPassword, getPassword, getProgramOptions, getSystemProperties, getSystemProperty, getUsage, initializeLogger, initializePasswords, inject, ok, parse, postConstruct, prepare, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toString, usageOptions, validateprotected static final String DB_TYPE_DEFAULT
protected static final String DB_HOST_DEFAULT
protected static final String DB_USER
protected static final String DB_PASSWORDFILE
protected String dbType
protected String dbHost
protected String dbPort
protected File dbLocation
protected File sJavaHome
protected File sInstallRoot
protected final ClassPathBuilder sClasspath
protected final ClassPathBuilder sDatabaseClasspath
protected DBManager dbManager
protected void prepareProcessExecutor()
throws Exception
Exceptionprotected String[] pingDatabaseCmd(boolean bRedirect) throws Exception
bRedirect - ExceptionCopyright © 2019. All rights reserved.