Search in sources :

Example 6 with StorageFactory

use of io.pravega.segmentstore.storage.StorageFactory in project pravega by pravega.

the class NoOpStorageFactoryTest method testCreateSyncStorage.

@Test(expected = UnsupportedOperationException.class)
public void testCreateSyncStorage() {
    StorageExtraConfig config = StorageExtraConfig.builder().build();
    @Cleanup("shutdownNow") ScheduledExecutorService executor = ExecutorServiceHelpers.newScheduledThreadPool(1, "test");
    StorageFactory factory = new NoOpStorageFactory(config, executor, new InMemoryStorageFactory(executor), null);
    factory.createSyncStorage();
}
Also used : ScheduledExecutorService(java.util.concurrent.ScheduledExecutorService) InMemoryStorageFactory(io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory) StorageFactory(io.pravega.segmentstore.storage.StorageFactory) InMemoryStorageFactory(io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory) Cleanup(lombok.Cleanup) Test(org.junit.Test)

Aggregations

StorageFactory (io.pravega.segmentstore.storage.StorageFactory)6 InMemoryStorageFactory (io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory)5 Cleanup (lombok.Cleanup)4 Test (org.junit.Test)4 Storage (io.pravega.segmentstore.storage.Storage)3 CacheStorage (io.pravega.segmentstore.storage.cache.CacheStorage)3 InMemoryStorage (io.pravega.segmentstore.storage.mocks.InMemoryStorage)3 RollingStorage (io.pravega.segmentstore.storage.rolling.RollingStorage)3 lombok.val (lombok.val)3 OperationLogFactory (io.pravega.segmentstore.server.OperationLogFactory)2 ByteArraySegment (io.pravega.common.util.ByteArraySegment)1 AttributeId (io.pravega.segmentstore.contracts.AttributeId)1 AttributeUpdate (io.pravega.segmentstore.contracts.AttributeUpdate)1 AttributeUpdateCollection (io.pravega.segmentstore.contracts.AttributeUpdateCollection)1 ReadIndexFactory (io.pravega.segmentstore.server.ReadIndexFactory)1 WriterFactory (io.pravega.segmentstore.server.WriterFactory)1 AttributeIndexFactory (io.pravega.segmentstore.server.attributes.AttributeIndexFactory)1 ContainerConfig (io.pravega.segmentstore.server.containers.ContainerConfig)1 StreamSegmentContainerFactory (io.pravega.segmentstore.server.containers.StreamSegmentContainerFactory)1 DurableLogFactory (io.pravega.segmentstore.server.logs.DurableLogFactory)1