Package voldemort.server

Examples of voldemort.server.VoldemortServer.stop()


     */
    public void stopServer(int nodeId) {
        if(logger.isInfoEnabled())
            logger.info("Stopping server of node [" + nodeId + "]");
        VoldemortServer server = voldemortServers.get(nodeId);
        server.stop();
    }

    public Set<Integer> getUniqueRandomNumbers(int max, int count) {
        Set<Integer> result = new HashSet<Integer>();
        Random r = new Random(System.currentTimeMillis());
View Full Code Here


    public void contextDestroyed(ServletContextEvent event) {
        logger.info("Calling application shutdown...");
        VoldemortServer server = (VoldemortServer) event.getServletContext()
                                                        .getAttribute(SERVER_KEY);
        if(server != null)
            server.stop();
        logger.info("Destroying application...");
        event.getServletContext().removeAttribute(SERVER_KEY);
        event.getServletContext().removeAttribute(SERVER_CONFIG_KEY);
        event.getServletContext().removeAttribute(VELOCITY_ENGINE_KEY);
    }
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.