Search in sources :

Example 86 with VoldemortServer

use of voldemort.server.VoldemortServer in project voldemort by voldemort.

the class VoldemortServletContextListener method contextDestroyed.

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);
}
Also used : VoldemortServer(voldemort.server.VoldemortServer)

Aggregations

VoldemortServer (voldemort.server.VoldemortServer)86 Properties (java.util.Properties)36 VoldemortConfig (voldemort.server.VoldemortConfig)24 Test (org.junit.Test)23 Node (voldemort.cluster.Node)23 Before (org.junit.Before)21 SocketStoreFactory (voldemort.store.socket.SocketStoreFactory)20 ClientRequestExecutorPool (voldemort.store.socket.clientrequest.ClientRequestExecutorPool)18 ClientConfig (voldemort.client.ClientConfig)17 ByteArray (voldemort.utils.ByteArray)17 ArrayList (java.util.ArrayList)16 After (org.junit.After)15 StoreDefinition (voldemort.store.StoreDefinition)15 SocketStoreClientFactory (voldemort.client.SocketStoreClientFactory)14 Cluster (voldemort.cluster.Cluster)14 IOException (java.io.IOException)11 HashMap (java.util.HashMap)11 AdminClient (voldemort.client.protocol.admin.AdminClient)11 VectorClock (voldemort.versioning.VectorClock)10 StoreDefinitionsMapper (voldemort.xml.StoreDefinitionsMapper)9