@Service(name="stop-domain") @PerLookup public class StopDomainCommand extends LocalDomainCommand
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 |
---|
StopDomainCommand() |
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 void |
doCommand()
Execute the actual stop-domain command.
|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
protected void |
initDomain()
Override initDomain in LocalDomainCommand to only initialize the local domain information (name, directory) in
the local case, when no --host has been specified.
|
protected int |
kill() |
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.
|
protected void |
waitForDeath()
Wait for the server to die.
|
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
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, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toString, usageOptions
protected void validate() throws CommandException
CLICommand
validate
in class LocalDomainCommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected void initDomain() throws CommandException
initDomain
in class LocalDomainCommand
CommandException
protected 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 argumentsprotected int dasNotRunning() throws CommandException
CommandException
protected void doCommand() throws CommandException
CommandException
protected void waitForDeath() throws CommandException
CommandException
protected int kill() throws CommandException
CommandException
Copyright © 2019. All rights reserved.