Class RestartDomainCommand

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct
    Direct Known Subclasses:
    RestartDomainsCommand

    @Service(name="restart-domain")
    @PerLookup
    public class RestartDomainCommand
    extends StopDomainCommand
    THe restart-domain command. The local portion of this command is only used to block until:
    • the old server dies
    • the new server starts
    Tactics:
    • Get the uptime for the current server
    • start the remote Restart command
    • Call uptime in a loop until the uptime number is less than the original uptime
    Author:
    bnevins, Bill Shannon