Class StartDomainCommand
java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
com.sun.enterprise.admin.servermgmt.cli.StartDomainCommand
- All Implemented Interfaces:
StartServerCommand,org.glassfish.hk2.api.PostConstruct
@Service(name="start-domain")
@PerLookup
public class StartDomainCommand
extends LocalDomainCommand
implements StartServerCommand
The start-domain command.
- Author:
- bnevins, Bill Shannon
-
Field Summary
Fields inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
domainDirParamFields inherited from class com.sun.enterprise.admin.cli.CLICommand
argv, commandModel, CONNECTION_ERROR, env, ERROR, INVALID_COMMAND_ERROR, logger, metadataErrors, name, operands, options, passwords, programOpts, SUCCESS, WARNING -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
getDomainName, getDomainRootDir, getDomainsDir, initDomain, isThisDAS, prepare, setDomainNameMethods inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getMasterPasswordFile, getServerDirs, getServerPid, getUptime, isLocal, isRestartable, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestartMethods inherited from class com.sun.enterprise.admin.cli.CLICommand
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
-
Constructor Details
-
StartDomainCommand
public StartDomainCommand()
-
-
Method Details
-
getLauncherArgs
- Specified by:
getLauncherArgsin interfaceStartServerCommand
-
getType
public org.glassfish.api.admin.RuntimeType getType()- Specified by:
getTypein interfaceStartServerCommand- Returns:
- the type of "this" server
-
validate
protected void validate() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException- Overrides:
validatein classLocalDomainCommand- Throws:
org.glassfish.api.admin.CommandExceptionorg.glassfish.api.admin.CommandValidationException
-
executeCommand
protected int executeCommand() throws org.glassfish.api.admin.CommandException- Specified by:
executeCommandin classcom.sun.enterprise.admin.cli.CLICommand- Throws:
org.glassfish.api.admin.CommandException
-
createLauncher
public void createLauncher() throws com.sun.enterprise.admin.launcher.GFLauncherException, com.sun.enterprise.universal.xml.MiniXmlParserExceptionCreate a glassFishLauncher for the domain specified by arguments to this command. The glassFishLauncher is for a server of the specified type. Sets the glassFishLauncher and launchParameters fields. It has to be public because it is part of an interface- Specified by:
createLauncherin interfaceStartServerCommand- Throws:
com.sun.enterprise.admin.launcher.GFLauncherExceptioncom.sun.enterprise.universal.xml.MiniXmlParserException
-