Examples of initiateShutdown()


Examples of com.sun.messaging.jmq.jmsserver.BrokerStateHandler.initiateShutdown()

         } else {
           logger.log(Logger.INFO, BrokerResources.I_ADMIN_SHUTDOWN_REQUEST);
         }
        
         // shutdown the broker
         bsh.initiateShutdown("admin", (time == null ? 0 : time.longValue())* 1000, failover, (shouldRestart ? BrokerStateHandler.getRestartCode() : 0), true);
                  
        }
        return true;
    }
   
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.BrokerStateHandler.initiateShutdown()

        }
     
        BrokerStateHandler bsh = Globals.getBrokerStateHandler();
        logger.log(Logger.INFO, "Restart request received by MBean " + getMBeanName());

        bsh.initiateShutdown("jmx",
            0,
            true,
            bsh.getRestartCode(),
            true, Broker.isInProcess(), false);
    }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.BrokerStateHandler.initiateShutdown()

  boolean failover = (noFailover == null ? true
        : !(noFailover.booleanValue()));

  logger.log(Logger.INFO, "Shutdown request received by MBean " + getMBeanName());

  bsh.initiateShutdown("jmx",
    (time == null ? 0 : time.longValue())* 1000,
    failover,
    0,
    true, Broker.isInProcess(), false);
    }
View Full Code Here

Examples of net.minecraft.server.MinecraftServer.initiateShutdown()

      FMLCommonHandler.instance().handleServerStopping(); // Try to get mods to save data - this may lock up, as we deadlocked.
    } catch (Throwable throwable) {
      Log.severe("Error stopping server", throwable);
    }
    minecraftServer.saveEverything(); // Save again, in case they changed anything.
    minecraftServer.initiateShutdown();
    InsecurityManager.flushLogs();
    trySleep(1000);
    Runtime.getRuntime().exit(1);
    return false;
  }
View Full Code Here

Examples of net.minecraft.server.MinecraftServer.initiateShutdown()

    }

    public static void abort()
    {
        MinecraftServer server = FMLCommonHandler.instance().getMinecraftServerInstance();
        if (server != null) server.initiateShutdown();

        aborted = true; // to abort loading and go back to the main menu
        throw new AbortedException(); // to halt the server
    }
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.