Examples of ShutdownCommand


Examples of com.cloud.agent.api.ShutdownCommand

                        answer = new StartupAnswer(startup, attache.getId(), getPingInterval());
                    } else if (cmd instanceof StartupStorageCommand) {
                        final StartupStorageCommand startup = (StartupStorageCommand) cmd;
                        answer = new StartupAnswer(startup, attache.getId(), getPingInterval());
                    } else if (cmd instanceof ShutdownCommand) {
                        final ShutdownCommand shutdown = (ShutdownCommand) cmd;
                        final String reason = shutdown.getReason();
                        s_logger.info("Host " + attache.getId() + " has informed us that it is shutting down with reason " + reason + " and detail " + shutdown.getDetail());
                        if (reason.equals(ShutdownCommand.Update)) {
                            //disconnectWithoutInvestigation(attache, Event.UpdateNeeded);
                            throw new CloudRuntimeException("Agent update not implemented");
                        } else if (reason.equals(ShutdownCommand.Requested)) {
                            disconnectWithoutInvestigation(attache, Event.ShutdownRequested);
View Full Code Here

Examples of org.apache.activemq.console.command.ShutdownCommand

     */
    public void stop() throws Exception {
        CommandContext context = new CommandContext();
        context.setFormatter(new CommandShellOutputFormatter(System.out));

        Command command = new ShutdownCommand();
        command.setCommandContext(context);

        List<String> tokens = new ArrayList<String>(Arrays.asList(new String[] {
                "--jmxlocal", "--all", }));

        command.execute(tokens);
    }
View Full Code Here

Examples of org.apache.activemq.console.command.ShutdownCommand

     */
    public void stop() throws Exception {
        CommandContext context = new CommandContext();
        context.setFormatter(new CommandShellOutputFormatter(System.out));

        Command command = new ShutdownCommand();
        command.setCommandContext(context);

        List<String> tokens = new ArrayList<String>(Arrays.asList(new String[] {
                "--jmxlocal", "--all", }));

        command.execute(tokens);
    }
View Full Code Here

Examples of org.jtestserver.server.commands.ShutdownCommand

   
    public TestServer() throws IOException, ProtocolException {
        nameToCommand = new HashMap<String, TestServerCommand>();
       
        addCommand(new RunMauveTestCommand());
        addCommand(new ShutdownCommand(this));
        addCommand(new GetStatusCommand());
       
        config = Config.read();
        Server<?, ?> s = null;
        //TODO use config for min and max port
View Full Code Here

Examples of org.xmatthew.spy2servers.command.ShutdownCommand

        if (START_C.equals(control)) {
            LOGGER.info("Server starting...");
            command = new StartCommand();
        } else {
            LOGGER.info("Stop server starting...");
            command = new ShutdownCommand();
        }
        command.execute(new ArrayList<String>());
       
        System.exit(0);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.