voldemort.rest.server
Class RestService

java.lang.Object
  extended by voldemort.common.service.AbstractService
      extended by voldemort.rest.server.RestService
All Implemented Interfaces:
VoldemortService

public class RestService
extends AbstractService


Field Summary
protected  java.util.concurrent.ThreadPoolExecutor workerPool
           
 
Constructor Summary
RestService(VoldemortConfig config, int restPort, StoreRepository storeRepository, int zoneId, java.util.List<StoreDefinition> storeDefinitions)
           
 
Method Summary
 int getActiveThreadsInWorkerPool()
           
 int getAllThreadInWorkerPool()
           
 int getQueuedRequests()
           
protected  void startInner()
           
protected  void stopInner()
          Closes the Netty Channel and releases all resources
 
Methods inherited from class voldemort.common.service.AbstractService
getType, isStarted, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workerPool

protected java.util.concurrent.ThreadPoolExecutor workerPool
Constructor Detail

RestService

public RestService(VoldemortConfig config,
                   int restPort,
                   StoreRepository storeRepository,
                   int zoneId,
                   java.util.List<StoreDefinition> storeDefinitions)
Method Detail

startInner

protected void startInner()
Specified by:
startInner in class AbstractService

stopInner

protected void stopInner()
Closes the Netty Channel and releases all resources

Specified by:
stopInner in class AbstractService

getActiveThreadsInWorkerPool

public int getActiveThreadsInWorkerPool()

getAllThreadInWorkerPool

public int getAllThreadInWorkerPool()

getQueuedRequests

public int getQueuedRequests()


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu