public abstract class LocalDomainCommand extends LocalServerCommand
Modifier and Type | Field and Description |
---|---|
protected String |
domainDirParam |
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 |
---|
LocalDomainCommand() |
Modifier and Type | Method and Description |
---|---|
protected String |
getDomainName() |
protected File |
getDomainRootDir() |
protected File |
getDomainsDir() |
protected void |
initDomain() |
protected boolean |
isThisDAS(File ourDir) |
protected void |
prepare()
The prepare method must ensure that the commandModel field is set.
|
protected void |
setDomainName(String name)
We need this so that @Param values for domainname can be remembered later
when the ServerDirs object is made.
|
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.
|
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getMasterPasswordFile, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart
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, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toString, usageOptions
protected String domainDirParam
protected void prepare() throws CommandException, CommandValidationException
CLICommand
prepare
in class CLICommand
CommandException
CommandValidationException
protected void validate() throws CommandException, CommandValidationException
CLICommand
validate
in class CLICommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected final File getDomainsDir()
protected final File getDomainRootDir()
protected final String getDomainName()
protected final void setDomainName(String name)
name
- the user-specified domain name.protected void initDomain() throws CommandException
CommandException
protected boolean isThisDAS(File ourDir)
Copyright © 2019. All rights reserved.