Class StopInstanceCommand

  • All Implemented Interfaces:
    AdminCommand, org.glassfish.hk2.api.PostConstruct

    @Service(name="stop-instance")
    @PerLookup
    @CommandLock(NONE)
    @ExecuteOn(DAS)
    public class StopInstanceCommand
    extends StopServer
    implements AdminCommand, org.glassfish.hk2.api.PostConstruct
    AdminCommand to stop the instance server. Shutdown of an instance. This command only runs on DAS. It calls the instance and asks it to kill itself
    Author:
    Byron Nevins
    • Constructor Detail

      • StopInstanceCommand

        public StopInstanceCommand()
    • Method Detail

      • execute

        public void execute​(AdminCommandContext context)
        Description copied from interface: AdminCommand
        Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
        Specified by:
        execute in interface AdminCommand
        Parameters:
        context - information
      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct