public abstract class LocalDomainCommand extends LocalServerCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
domainDirParam |
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, 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, waitForRestartcheckHelp, 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, usageOptionsprotected String domainDirParam
protected void prepare()
throws CommandException,
CommandValidationException
CLICommandprepare in class CLICommandCommandExceptionCommandValidationExceptionprotected void validate()
throws CommandException,
CommandValidationException
CLICommandvalidate in class CLICommandCommandException - 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
CommandExceptionprotected boolean isThisDAS(File ourDir)
Copyright © 2017. All rights reserved.