|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StoreClientFactory
An abstraction the represents a connection to a Voldemort cluster and can be
used to create StoreClient
instances to
interact with individual stores. The factory abstracts away any connection
pools, thread pools, or other details that will be shared by all the
individual
StoreClient
Method Summary | ||
---|---|---|
void |
close()
Close the store client |
|
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>> inconsistencyResolver)
Get a StoreClient for the given store. |
Method Detail |
---|
<K,V> StoreClient<K,V> getStoreClient(java.lang.String storeName)
StoreClient
for the given store.
K
- The type of the key of the
StoreClient
V
- The type of the value of the
StoreClient
storeName
- The name of the store
StoreClient
<K,V> StoreClient<K,V> getStoreClient(java.lang.String storeName, InconsistencyResolver<Versioned<V>> inconsistencyResolver)
StoreClient
for the given store.
K
- The type of the key of the
StoreClient
V
- The type of the value of the
StoreClient
storeName
- The name of the storeinconsistencyResolver
- The
InconsistencyResolver
that should be
used to resolve inconsistencies.
StoreClient
<K,V,T> Store<K,V,T> getRawStore(java.lang.String storeName, InconsistencyResolver<Versioned<V>> resolver)
storeName
- The name of the storeresolver
- The inconsistency resolver
void close()
FailureDetector getFailureDetector()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |