@Service(name="delete-local-instance") @PerLookup public class DeleteLocalInstanceCommand 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 |
|---|
DeleteLocalInstanceCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
protected void |
initInstance()
initInstance goes to great lengths to figure out the correct directory structure.
|
protected boolean |
mkdirs(File f)
We most definitely do not want to create directories for nodes here!!
|
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 initInstance()
throws CommandException
initInstance in class LocalInstanceCommandCommandExceptionprotected boolean mkdirs(File f)
mkdirs in class LocalInstanceCommandf - the directory to createprotected 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 int executeCommand()
throws CommandException,
CommandValidationException
CLICommandexecuteCommand in class CLICommandCommandException - if execution of the command failsCommandValidationException - if there's something wrong
with the options or argumentsCopyright © 2019. All rights reserved.