voldemort.server
Class VoldemortServer

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

public class VoldemortServer
extends AbstractService

This is the main server, it bootstraps all the services. It can be embedded or run directly via it's main method.


Field Summary
static long DEFAULT_PUSHER_POLL_MS
           
 
Constructor Summary
VoldemortServer(VoldemortConfig config)
           
VoldemortServer(VoldemortConfig config, Cluster cluster)
          Constructor is used exclusively by tests.
 
Method Summary
 AsyncOperationService getAsyncRunner()
           
 Node getIdentityNode()
           
 MetadataStore getMetadataStore()
           
 VoldemortService getService(ServiceType type)
           
 java.util.List<VoldemortService> getServices()
           
 StoreRepository getStoreRepository()
           
 VoldemortConfig getVoldemortConfig()
           
static void main(java.lang.String[] args)
           
 void restoreDataFromReplication(int numberOfParallelTransfers)
           
protected  void startInner()
           
protected  void stopInner()
          Attempt to shutdown the server.
 
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

DEFAULT_PUSHER_POLL_MS

public static final long DEFAULT_PUSHER_POLL_MS
See Also:
Constant Field Values
Constructor Detail

VoldemortServer

public VoldemortServer(VoldemortConfig config)

VoldemortServer

public VoldemortServer(VoldemortConfig config,
                       Cluster cluster)
Constructor is used exclusively by tests. I.e., this is not a code path that is exercised in production.

Parameters:
config -
cluster -
Method Detail

getAsyncRunner

public AsyncOperationService getAsyncRunner()

startInner

protected void startInner()
                   throws VoldemortException
Specified by:
startInner in class AbstractService
Throws:
VoldemortException

stopInner

protected void stopInner()
                  throws VoldemortException
Attempt to shutdown the server. As much shutdown as possible will be completed, even if intermediate errors are encountered.

Specified by:
stopInner in class AbstractService
Throws:
VoldemortException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getIdentityNode

public Node getIdentityNode()

getServices

public java.util.List<VoldemortService> getServices()

getService

public VoldemortService getService(ServiceType type)

getVoldemortConfig

public VoldemortConfig getVoldemortConfig()

getStoreRepository

public StoreRepository getStoreRepository()

getMetadataStore

public MetadataStore getMetadataStore()

restoreDataFromReplication

public void restoreDataFromReplication(int numberOfParallelTransfers)


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