Search in sources :

Example 1 with CachingTestTransactionManager

use of com.palantir.atlasdb.transaction.impl.CachingTestTransactionManager in project atlasdb by palantir.

the class AtlasDbTestCase method setUp.

@Before
public void setUp() throws Exception {
    timestampService = new InMemoryTimestampService();
    KeyValueService kvs = getBaseKeyValueService();
    keyValueServiceWithStats = new StatsTrackingKeyValueService(kvs);
    keyValueService = new TrackingKeyValueService(keyValueServiceWithStats);
    TransactionTables.createTables(kvs);
    transactionService = TransactionServices.createTransactionService(kvs);
    conflictDetectionManager = ConflictDetectionManagers.createWithoutWarmingCache(keyValueService);
    sweepStrategyManager = SweepStrategyManagers.createDefault(keyValueService);
    serializableTxManager = new TestTransactionManagerImpl(keyValueService, timestampService, lockClient, lockService, transactionService, conflictDetectionManager, sweepStrategyManager, wrappingSweepQueue);
    txManager = new CachingTestTransactionManager(serializableTxManager);
}
Also used : InMemoryKeyValueService(com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService) StatsTrackingKeyValueService(com.palantir.atlasdb.keyvalue.impl.StatsTrackingKeyValueService) TracingKeyValueService(com.palantir.atlasdb.keyvalue.impl.TracingKeyValueService) TrackingKeyValueService(com.palantir.atlasdb.keyvalue.impl.TrackingKeyValueService) KeyValueService(com.palantir.atlasdb.keyvalue.api.KeyValueService) StatsTrackingKeyValueService(com.palantir.atlasdb.keyvalue.impl.StatsTrackingKeyValueService) TestTransactionManagerImpl(com.palantir.atlasdb.transaction.impl.TestTransactionManagerImpl) StatsTrackingKeyValueService(com.palantir.atlasdb.keyvalue.impl.StatsTrackingKeyValueService) TrackingKeyValueService(com.palantir.atlasdb.keyvalue.impl.TrackingKeyValueService) CachingTestTransactionManager(com.palantir.atlasdb.transaction.impl.CachingTestTransactionManager) InMemoryTimestampService(com.palantir.timestamp.InMemoryTimestampService) Before(org.junit.Before)

Aggregations

KeyValueService (com.palantir.atlasdb.keyvalue.api.KeyValueService)1 InMemoryKeyValueService (com.palantir.atlasdb.keyvalue.impl.InMemoryKeyValueService)1 StatsTrackingKeyValueService (com.palantir.atlasdb.keyvalue.impl.StatsTrackingKeyValueService)1 TracingKeyValueService (com.palantir.atlasdb.keyvalue.impl.TracingKeyValueService)1 TrackingKeyValueService (com.palantir.atlasdb.keyvalue.impl.TrackingKeyValueService)1 CachingTestTransactionManager (com.palantir.atlasdb.transaction.impl.CachingTestTransactionManager)1 TestTransactionManagerImpl (com.palantir.atlasdb.transaction.impl.TestTransactionManagerImpl)1 InMemoryTimestampService (com.palantir.timestamp.InMemoryTimestampService)1 Before (org.junit.Before)1