voldemort.client
Class HttpStoreClientFactory

java.lang.Object
  extended by voldemort.client.AbstractStoreClientFactory
      extended by voldemort.client.HttpStoreClientFactory
All Implemented Interfaces:
StoreClientFactory

public class HttpStoreClientFactory
extends AbstractStoreClientFactory

A StoreClientFactory that creates a remote client that connects and bootstraps itself via HTTP.


Field Summary
static java.lang.String URL_SCHEME
           
 
Fields inherited from class voldemort.client.AbstractStoreClientFactory
clusterMapper, DEFAULT_ROUTING_TIMEOUT_MS, failureDetector, jmxId, logger
 
Constructor Summary
HttpStoreClientFactory(ClientConfig config)
           
 
Method Summary
 void close()
          Close the store client
protected  int getPort(Node node)
           
protected  Store<ByteArray,byte[],byte[]> getStore(java.lang.String name, java.lang.String host, int port, RequestFormatType type)
           
protected  FailureDetector initFailureDetector(ClientConfig config, Cluster cluster)
           
protected  void validateUrl(java.net.URI url)
           
 
Methods inherited from class voldemort.client.AbstractStoreClientFactory
bootstrapMetadataWithRetries, bootstrapMetadataWithRetries, getClientContext, getCluster, getConfig, getCurrentJmxId, getFailureDetector, getNextJmxId, getRawStore, getRawStore, getRemoteMetadata, getRequestFormatType, getSerializerFactory, getStoreClient, getStoreClient, getStoreDefs, validateUrls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_SCHEME

public static final java.lang.String URL_SCHEME
See Also:
Constant Field Values
Constructor Detail

HttpStoreClientFactory

public HttpStoreClientFactory(ClientConfig config)
Method Detail

getStore

protected Store<ByteArray,byte[],byte[]> getStore(java.lang.String name,
                                                  java.lang.String host,
                                                  int port,
                                                  RequestFormatType type)
Specified by:
getStore in class AbstractStoreClientFactory

initFailureDetector

protected FailureDetector initFailureDetector(ClientConfig config,
                                              Cluster cluster)
Specified by:
initFailureDetector in class AbstractStoreClientFactory

getPort

protected int getPort(Node node)
Specified by:
getPort in class AbstractStoreClientFactory

validateUrl

protected void validateUrl(java.net.URI url)
Specified by:
validateUrl in class AbstractStoreClientFactory

close

public void close()
Description copied from interface: StoreClientFactory
Close the store client

Specified by:
close in interface StoreClientFactory
Overrides:
close in class AbstractStoreClientFactory


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