Package voldemort.server.http.gui

Examples of voldemort.server.http.gui.VelocityEngine


                       int httpPort) {
        super(ServiceType.HTTP);
        this.port = httpPort;
        this.numberOfThreads = numberOfThreads;
        this.server = server;
        this.velocityEngine = new VelocityEngine(VoldemortServletContextListener.VOLDEMORT_TEMPLATE_DIR);
        this.requestHandler = new SocketRequestHandlerFactory(storageService,
                                                              server.getStoreRepository(),
                                                              server.getMetadataStore(),
                                                              server.getVoldemortConfig(),
                                                              server.getAsyncRunner(),
View Full Code Here


            logger.info("Creating application...");
            VoldemortServer server = new VoldemortServer(VoldemortConfig.loadFromEnvironmentVariable());
            event.getServletContext().setAttribute(SERVER_KEY, server);
            event.getServletContext().setAttribute(SERVER_CONFIG_KEY, server.getVoldemortConfig());
            event.getServletContext().setAttribute(VELOCITY_ENGINE_KEY,
                                                   new VelocityEngine(VOLDEMORT_TEMPLATE_DIR));
            server.start();
            logger.info("Application created.");
        } catch(ConfigurationException e) {
            logger.info("Error loading voldemort server:", e);
            throw e;
View Full Code Here

TOP

Related Classes of voldemort.server.http.gui.VelocityEngine

Copyright © 2018 www.massapicom. 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.