Class CreateDomainCommand
- java.lang.Object
-
- com.sun.enterprise.admin.cli.CLICommand
-
- com.sun.enterprise.admin.servermgmt.cli.CreateDomainCommand
-
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
@Service(name="create-domain") @PerLookup public final class CreateDomainCommand extends com.sun.enterprise.admin.cli.CLICommandThis is a local command that creates a domain.
-
-
Constructor Summary
Constructors Constructor Description CreateDomainCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intexecuteCommand()protected Collection<org.glassfish.api.admin.CommandModel.ParamModel>usageOptions()Add --adminport and --instanceport options with proper default values.protected voidvalidate()voidverifyPortBase()-
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, prepare, prevalidate, printExceptionStackTrace, processProgramOptions, quote, readPassword, setCommandScope, toString
-
-
-
-
Method Detail
-
usageOptions
protected Collection<org.glassfish.api.admin.CommandModel.ParamModel> usageOptions()
Add --adminport and --instanceport options with proper default values. (Can't set default values above because it conflicts with --portbase option processing.)- Overrides:
usageOptionsin classcom.sun.enterprise.admin.cli.CLICommand
-
validate
protected void validate() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException- Overrides:
validatein classcom.sun.enterprise.admin.cli.CLICommand- Throws:
org.glassfish.api.admin.CommandExceptionorg.glassfish.api.admin.CommandValidationException
-
verifyPortBase
public void verifyPortBase() throws org.glassfish.api.admin.CommandValidationException- Throws:
org.glassfish.api.admin.CommandValidationException
-
executeCommand
protected int executeCommand() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException- Specified by:
executeCommandin classcom.sun.enterprise.admin.cli.CLICommand- Throws:
org.glassfish.api.admin.CommandExceptionorg.glassfish.api.admin.CommandValidationException
-
-