@Service(name="_change-master-password-node") @PerLookup public class ChangeNodeMasterPasswordCommand extends LocalInstanceCommand
Modifier and Type | Field and Description |
---|---|
protected String |
node0 |
protected String |
nodeDir0 |
protected boolean |
savemp |
checkOneAndOnly, domainName, instanceDir, instanceName, isCreateInstanceFilesystem, node, nodeDir, nodeDirChild, nodeDirRoot
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING
Constructor and Description |
---|
ChangeNodeMasterPasswordCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
createMasterPasswordFile()
Create the master password keystore.
|
void |
encryptKeystore(String f) |
int |
execute(String... argv)
Execute this command with the given arguemnts.
|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
getDasProperties, getInstallRootPath, getInstanceDirs, getInstanceName, getMasterPasswordFile, getNodeInstallDir, getProductRootPath, initInstance, isDirectory, mkdirs, setDasDefaults, setInstanceName, setServerDirs, validate, validateDasOptions, whackFilesystem
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart
checkHelp, 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, usageOptions
protected String nodeDir0
protected String node0
protected boolean savemp
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 argumentspublic int execute(String... argv) throws CommandException
CLICommand
execute
in class CLICommand
argv
- Arguments to execute command withCommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentsprotected void createMasterPasswordFile() throws CommandException
CommandException
public void encryptKeystore(String f) throws CommandException
CommandException
Copyright © 2018. All rights reserved.