@Service(name="change-admin-password") @PerLookup public class ChangeAdminPasswordCommand extends LocalDomainCommand
domainDirParam
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING
Constructor and Description |
---|
ChangeAdminPasswordCommand() |
Modifier and Type | Method and Description |
---|---|
protected int |
executeCommand()
Execute the remote command using the parameters we've collected.
|
protected void |
validate()
Require the user to actually type the passwords unless they are in the file specified by the --passwordfile option.
|
getDomainName, getDomainRootDir, getDomainsDir, initDomain, 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, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toString, usageOptions
protected void validate() throws CommandException, CommandValidationException
validate
in class LocalDomainCommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected int executeCommand() throws CommandException
executeCommand
in class CLICommand
CommandException
- if the remote command failedCopyright © 2018. All rights reserved.