Class CreateServiceCommand
java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.servermgmt.cli.CreateServiceCommand
- All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
@Service(name="create-service")
@PerLookup
public final class CreateServiceCommand
extends com.sun.enterprise.admin.cli.CLICommand
Create a "service" in the operating system to start this domain automatically.
-
Field Summary
Fields 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.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, usageOptions
-
Constructor Details
-
CreateServiceCommand
public CreateServiceCommand()
-
-
Method Details
-
validate
protected void validate() throws org.glassfish.api.admin.CommandException- Overrides:
validatein classcom.sun.enterprise.admin.cli.CLICommand- Throws:
org.glassfish.api.admin.CommandException
-
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
-