Class StartDomainCommand

java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
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
  • Constructor Details

    • StartDomainCommand

      public StartDomainCommand()
  • Method Details

    • getLauncherArgs

      public List<String> getLauncherArgs()
      Specified by:
      getLauncherArgs in interface StartServerCommand
    • getType

      public org.glassfish.api.admin.RuntimeType getType()
      Specified by:
      getType in interface StartServerCommand
      Returns:
      the type of "this" server
    • validate

      protected void validate() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException
      Overrides:
      validate in class LocalDomainCommand
      Throws:
      org.glassfish.api.admin.CommandException
      org.glassfish.api.admin.CommandValidationException
    • executeCommand

      protected int executeCommand() throws org.glassfish.api.admin.CommandException
      Specified by:
      executeCommand in class com.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.MiniXmlParserException
      Create 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:
      createLauncher in interface StartServerCommand
      Throws:
      com.sun.enterprise.admin.launcher.GFLauncherException
      com.sun.enterprise.universal.xml.MiniXmlParserException