@Service(name="stop-all-domains") @PerLookup public class StopAllDomainsCommand extends StopDomainCommand
domainDirParam
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING
Constructor and Description |
---|
StopAllDomainsCommand() |
Modifier and Type | Method and Description |
---|---|
protected int |
dasNotRunning()
Print message and return exit code when we detect that the DAS is not running.
|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
protected void |
prevalidate()
The prevalidate method supplies missing options from
the environment.
|
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.
|
doCommand, initDomain, kill, waitForDeath
getDomainName, getDomainRootDir, getDomainsDir, isThisDAS, prepare, setDomainName
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getMasterPasswordFile, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart
checkHelp, 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, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toString, usageOptions
protected void prevalidate() throws CommandException
CLICommand
prevalidate
in class CLICommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected void validate() throws CommandException, CommandValidationException
CLICommand
validate
in class StopDomainCommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected int executeCommand() throws CommandException
CLICommand
executeCommand
in class StopDomainCommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected int dasNotRunning() throws CommandException
StopDomainCommand
dasNotRunning
in class StopDomainCommand
CommandException
Copyright © 2018. All rights reserved.