@Service(name="_validate-das-options") @PerLookup public class ValidateDasOptions extends LocalInstanceCommand
checkOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRoot
DEFAULT_MASTER_PASSWORD
argv, ASADMIN, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, lineReader, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, terminal, WARNING
Constructor and Description |
---|
ValidateDasOptions() |
Modifier and Type | Method and Description |
---|---|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
protected boolean |
isDirectory(File f)
Override this method if your class does NOT want CommandException thrown
if directory does not exist.
|
protected boolean |
mkdirs(File f)
Override this method if your class does NOT want to create directories
|
protected boolean |
setServerDirs()
Override this method if your class does NOT want to set ServerDirs
|
protected void |
validate()
The validate method can be used by a subclass to validate
that the type and quantity of parameters and operands matches
the requirements for this command.
|
getDasProperties, getInstanceDirs, getInstanceName, getMasterPasswordFile, getNodeInstallDir, getNodeProperties, getProductRootPath, initInstance, setDasDefaults, setInstanceName, validateDasOptions, whackFilesystem
checkForSpecialFiles, dataGridEncryptionEnabled, getAdminAddress, getAdminAddress, getDomainXml, getInstallRootPath, getMasterPassword, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart
buildLineReader, buildTerminal, checkHelp, closeTerminal, execute, execute, 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
protected boolean mkdirs(File f)
LocalInstanceCommand
mkdirs
in class LocalInstanceCommand
f
- the directory to createprotected boolean isDirectory(File f)
LocalInstanceCommand
isDirectory
in class LocalInstanceCommand
f
- directory to checkprotected boolean setServerDirs()
LocalInstanceCommand
setServerDirs
in class LocalInstanceCommand
protected final void validate() throws CommandException
CLICommand
validate
in class LocalInstanceCommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected final int executeCommand() throws CommandException
CLICommand
executeCommand
in class CLICommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsCopyright © 2020. All rights reserved.