voldemort.server.rest
Class RestService

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

public class RestService
extends AbstractService


Field Summary
protected  java.util.concurrent.ThreadPoolExecutor workerPool
           
 
Constructor Summary
RestService(VoldemortConfig config, int httpPort, StoreRepository storeRepository, int zoneId)
           
 
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 httpPort,
                   StoreRepository storeRepository,
                   int zoneId)
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