|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.CachingStoreClientFactory
public class CachingStoreClientFactory
A wrapper for a store StoreClientFactory which caches requests
to getStoreClient
| Constructor Summary | |
|---|---|
CachingStoreClientFactory(StoreClientFactory inner)
|
|
| Method Summary | ||
|---|---|---|
void |
bootstrapAllClients()
|
|
void |
clear()
|
|
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. |
|
|
getRawStore(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
Get the underlying store, not the public StoreClient interface |
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingStoreClientFactory(StoreClientFactory inner)
| 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,T> voldemort.store.Store<K,V,T> getRawStore(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
StoreClientFactory
getRawStore in interface StoreClientFactoryK - The key typeV - The value typeT - The transform typestoreName - The name of the storeresolver - The inconsistency resolver
public void close()
StoreClientFactory
close in interface StoreClientFactorypublic voldemort.cluster.failuredetector.FailureDetector getFailureDetector()
StoreClientFactory
getFailureDetector in interface StoreClientFactorypublic void clear()
public void bootstrapAllClients()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||