Class StopDomainCommand

  • 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 Detail

      • StopDomainCommand

        public StopDomainCommand()
    • Method Detail

      • 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
      • waitForDeath

        protected void waitForDeath()
                             throws org.glassfish.api.admin.CommandException
        Wait for the server to die.
        Throws:
        org.glassfish.api.admin.CommandException