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
domainDirParam
-
-
Constructor Summary
Constructors Constructor Description StartDomainCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateLauncher()Create a glassFishLauncher for the domain specified by arguments to this command.protected intexecuteCommand()List<String>getLauncherArgs()org.glassfish.api.admin.RuntimeTypegetType()protected voidvalidate()-
Methods inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalDomainCommand
getDomainName, getDomainRootDir, getDomainsDir, initDomain, isThisDAS, prepare, setDomainName
-
Methods inherited from class com.sun.enterprise.admin.servermgmt.cli.LocalServerCommand
checkForSpecialFiles, getAdminAddress, getAdminAddress, getDomainXml, getMasterPassword, getMasterPasswordFile, getPrevPid, getServerDirs, getServerPid, getUptime, isLocal, isRemote, isRestartable, isRunning, isRunning, isThisServer, loadAndVerifyKeystore, readFromMasterPasswordFile, resetServerDirs, setLocalPassword, setServerDirs, unsetLocalPassword, verifyMasterPassword, waitForRestart
-
Methods 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
-
-
-
-
Method Detail
-
getLauncherArgs
public List<String> 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
-
-