|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.AbstractStoreClientFactory
public abstract class AbstractStoreClientFactory
A base class for various StoreClientFactory implementations
| Field Summary | |
|---|---|
protected static voldemort.xml.ClusterMapper |
clusterMapper
|
static int |
DEFAULT_ROUTING_TIMEOUT_MS
|
protected voldemort.cluster.failuredetector.FailureDetector |
failureDetector
|
protected static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
AbstractStoreClientFactory(ClientConfig config)
|
|
| Method Summary | ||
|---|---|---|
java.lang.String |
bootstrapMetadataWithRetries(java.lang.String key)
|
|
java.lang.String |
bootstrapMetadataWithRetries(java.lang.String key,
java.net.URI[] urls)
|
|
void |
close()
Close the store client |
|
voldemort.cluster.failuredetector.FailureDetector |
getFailureDetector()
Returns the FailureDetector specific to the cluster against which this client factory is based. |
|
protected abstract int |
getPort(voldemort.cluster.Node node)
|
|
|
getRawStore(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
Get the underlying store, not the public StoreClient interface |
|
long |
getRoutingTimeoutMs()
|
|
SerializerFactory |
getSerializerFactory()
|
|
protected abstract voldemort.store.Store<voldemort.utils.ByteArray,byte[]> |
getStore(java.lang.String storeName,
java.lang.String host,
int port,
RequestFormatType type)
|
|
|
getStoreClient(java.lang.String storeName)
Get a StoreClient for the given store. |
|
|
getStoreClient(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
Get a StoreClient for the given store. |
|
protected java.util.concurrent.ExecutorService |
getThreadPool()
|
|
protected abstract voldemort.cluster.failuredetector.FailureDetector |
initFailureDetector(ClientConfig config,
java.util.Collection<voldemort.cluster.Node> nodes)
|
|
protected abstract void |
validateUrl(java.net.URI url)
|
|
java.net.URI[] |
validateUrls(java.lang.String[] urls)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_ROUTING_TIMEOUT_MS
protected static final voldemort.xml.ClusterMapper clusterMapper
protected static final org.apache.log4j.Logger logger
protected volatile voldemort.cluster.failuredetector.FailureDetector failureDetector
| Constructor Detail |
|---|
public AbstractStoreClientFactory(ClientConfig config)
| Method Detail |
|---|
public <K,V> StoreClient<K,V> getStoreClient(java.lang.String storeName)
StoreClientFactoryStoreClient for the given store.
getStoreClient in interface StoreClientFactoryK - The type of the key of the
StoreClientV - The type of the value of the
StoreClientstoreName - The name of the store
StoreClient
public <K,V> StoreClient<K,V> getStoreClient(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
StoreClientFactoryStoreClient for the given store.
getStoreClient in interface StoreClientFactoryK - The type of the key of the
StoreClientV - The type of the value of the
StoreClientstoreName - The name of the storeresolver - The
InconsistencyResolver that should be
used to resolve inconsistencies.
StoreClient
public <K,V> voldemort.store.Store<K,V> getRawStore(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
StoreClientFactory
getRawStore in interface StoreClientFactoryK - The key typeV - The value typestoreName - The name of the storeresolver - The inconsistency resolver
protected abstract voldemort.cluster.failuredetector.FailureDetector initFailureDetector(ClientConfig config,
java.util.Collection<voldemort.cluster.Node> nodes)
public voldemort.cluster.failuredetector.FailureDetector getFailureDetector()
StoreClientFactory
getFailureDetector in interface StoreClientFactory
public java.lang.String bootstrapMetadataWithRetries(java.lang.String key,
java.net.URI[] urls)
public java.lang.String bootstrapMetadataWithRetries(java.lang.String key)
public java.net.URI[] validateUrls(java.lang.String[] urls)
protected abstract voldemort.store.Store<voldemort.utils.ByteArray,byte[]> getStore(java.lang.String storeName,
java.lang.String host,
int port,
RequestFormatType type)
protected abstract int getPort(voldemort.cluster.Node node)
protected abstract void validateUrl(java.net.URI url)
protected java.util.concurrent.ExecutorService getThreadPool()
public long getRoutingTimeoutMs()
public SerializerFactory getSerializerFactory()
public void close()
StoreClientFactory
close in interface StoreClientFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||