|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.MockStoreClientFactory
public class MockStoreClientFactory
A store client that produces non-persistent, in-memory stores. This is useful for unit testing.
| Constructor Summary | |
|---|---|
MockStoreClientFactory(Serializer<?> keySerializer,
Serializer<?> valueSerializer)
|
|
MockStoreClientFactory(Serializer<?> keySerializer,
Serializer<?> valueSerializer,
int nodeId,
voldemort.utils.Time time)
|
|
| Method Summary | ||
|---|---|---|
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<V1>> 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 MockStoreClientFactory(Serializer<?> keySerializer,
Serializer<?> valueSerializer)
public MockStoreClientFactory(Serializer<?> keySerializer,
Serializer<?> valueSerializer,
int nodeId,
voldemort.utils.Time time)
| 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 <K1,V1> voldemort.store.Store<K1,V1> getRawStore(java.lang.String storeName,
InconsistencyResolver<Versioned<V1>> resolver)
StoreClientFactory
getRawStore in interface StoreClientFactoryK1 - The key typeV1 - The value 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 StoreClientFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||