public abstract class DatabaseCommand extends CLICommand
Modifier and Type | Field and Description |
---|---|
protected static String |
DB_USER |
protected String |
dbHost |
protected File |
dbLocation |
protected DBManager |
dbManager |
protected String |
dbPort |
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, validate
protected static final String DB_USER
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
Exception
protected String[] pingDatabaseCmd(boolean bRedirect) throws Exception
bRedirect
- Exception
Copyright © 2020. All rights reserved.