Search in sources :

Example 1 with SystemTime

use of voldemort.utils.SystemTime in project voldemort by voldemort.

the class InMemoryMultiThreadedTest method main.

public static void main(String[] args) throws Exception {
    Store<byte[], byte[], byte[]> store = new VersionIncrementingStore<byte[], byte[], byte[]>(new InMemoryStorageEngine<byte[], byte[], byte[]>("test"), 0, new SystemTime());
    store = new InconsistencyResolvingStore<byte[], byte[], byte[]>(store, new VectorClockInconsistencyResolver<byte[]>());
    new MultithreadedStressTest(store, 5, 1000000, 10).testGetAndPut();
}
Also used : VersionIncrementingStore(voldemort.store.versioned.VersionIncrementingStore) VectorClockInconsistencyResolver(voldemort.versioning.VectorClockInconsistencyResolver) SystemTime(voldemort.utils.SystemTime)

Aggregations

VersionIncrementingStore (voldemort.store.versioned.VersionIncrementingStore)1 SystemTime (voldemort.utils.SystemTime)1 VectorClockInconsistencyResolver (voldemort.versioning.VectorClockInconsistencyResolver)1