@Service(name="stop-local-instance") @PerLookup public class StopLocalInstanceCommand extends LocalInstanceCommand
checkOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRootDEFAULT_MASTER_PASSWORDargv, ASADMIN, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, lineReader, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, terminal, WARNING| Constructor and Description |
|---|
StopLocalInstanceCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
doRemoteCommand()
Execute the actual stop-domain command.
|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
protected void |
initInstance()
Big trouble if you allow the super implementation to run
because it creates directories.
|
protected int |
instanceNotRunning()
Print message and return exit code when
we detect that the DAS is not running.
|
protected boolean |
mkdirs(File f)
Override this method if your class does NOT want to create directories
|
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, getInstallRootPath, getInstanceDirs, getInstanceName, getMasterPasswordFile, getNodeInstallDir, getNodeProperties, getProductRootPath, isDirectory, setDasDefaults, setInstanceName, setServerDirs, validateDasOptions, whackFilesystemcheckForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestartbuildLineReader, 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, usageOptionsprotected void validate()
throws CommandException,
CommandValidationException
CLICommandvalidate in class LocalInstanceCommandCommandException - if execution of the command failsCommandValidationException - if there's something wrong
with the options or argumentsprotected boolean mkdirs(File f)
LocalInstanceCommandmkdirs in class LocalInstanceCommandf - the directory to createprotected void initInstance()
throws CommandException
initInstance in class LocalInstanceCommandCommandExceptionprotected int executeCommand()
throws CommandException,
CommandValidationException
CLICommandexecuteCommand in class CLICommandCommandException - if execution of the command failsCommandValidationException - if there's something wrong
with the options or argumentsprotected int instanceNotRunning()
throws CommandException
CommandExceptionprotected int doRemoteCommand()
throws CommandException
CommandExceptionCopyright © 2019. All rights reserved.