Class StopDomainCommand

java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct
Direct Known Subclasses:
RestartDomainCommand

@Service(name="stop-domain") @PerLookup public class StopDomainCommand extends LocalDomainCommand
The stop-domain command.
Author:
Byron Nevins, Bill Shannon
  • Constructor Details

    • StopDomainCommand

      public StopDomainCommand()
  • Method Details

    • validate

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

      protected void initDomain() throws org.glassfish.api.admin.CommandException
      Override initDomain in LocalDomainCommand to only initialize the local domain information (name, directory) in the local case, when no --host has been specified.
      Overrides:
      initDomain in class LocalDomainCommand
      Throws:
      org.glassfish.api.admin.CommandException
    • 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
    • dasNotRunning

      protected int dasNotRunning() throws org.glassfish.api.admin.CommandException
      Print message and return exit code when we detect that the DAS is not running.
      Throws:
      org.glassfish.api.admin.CommandException
    • doCommand

      protected void doCommand() throws org.glassfish.api.admin.CommandException
      Execute the actual stop-domain command.
      Throws:
      org.glassfish.api.admin.CommandException