@Service(name="start-domain") @PerLookup public class StartDomainCommand extends LocalDomainCommand implements StartServerCommand
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 |
---|
StartDomainCommand() |
Modifier and Type | Method and Description |
---|---|
void |
createLauncher()
Create a launcher for the domain specified by arguments to
this command.The launcher is for a server of the specified type.
|
protected int |
executeCommand()
Execute the command using the options in options and the
operands in operands.
|
List<String> |
getLauncherArgs() |
RuntimeType |
getType() |
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.
|
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
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
public List<String> getLauncherArgs()
getLauncherArgs
in interface StartServerCommand
public RuntimeType getType()
getType
in interface StartServerCommand
protected void validate() throws CommandException, CommandValidationException
CLICommand
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
CLICommand
executeCommand
in class CLICommand
CommandException
- if execution of the command failsCommandValidationException
- if there's something wrong
with the options or argumentspublic void createLauncher() throws GFLauncherException, MiniXmlParserException
createLauncher
in interface StartServerCommand
GFLauncherException
- if the launcher fails to setupMiniXmlParserException
- if the domain.xml cannot be processedCopyright © 2019. All rights reserved.