voldemort.server
Class VoldemortServer
java.lang.Object
voldemort.common.service.AbstractService
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PUSHER_POLL_MS
public static final long DEFAULT_PUSHER_POLL_MS
- See Also:
- Constant Field Values
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
-
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