Search in sources :

Example 1 with StreamSegmentContainerFactory

use of io.pravega.segmentstore.server.containers.StreamSegmentContainerFactory in project pravega by pravega.

the class ServiceBuilder method createSegmentContainerFactory.

protected SegmentContainerFactory createSegmentContainerFactory() {
    ReadIndexFactory readIndexFactory = getSingleton(this.readIndexFactory, this::createReadIndexFactory);
    StorageFactory storageFactory = createStorageFactory();
    OperationLogFactory operationLogFactory = getSingleton(this.operationLogFactory, this::createOperationLogFactory);
    WriterFactory writerFactory = getSingleton(this.writerFactory, this::createWriterFactory);
    ContainerConfig containerConfig = this.serviceBuilderConfig.getConfig(ContainerConfig::builder);
    return new StreamSegmentContainerFactory(containerConfig, operationLogFactory, readIndexFactory, writerFactory, storageFactory, this.coreExecutor);
}
Also used : ContainerConfig(io.pravega.segmentstore.server.containers.ContainerConfig) ReadIndexFactory(io.pravega.segmentstore.server.ReadIndexFactory) ContainerReadIndexFactory(io.pravega.segmentstore.server.reading.ContainerReadIndexFactory) StorageFactory(io.pravega.segmentstore.storage.StorageFactory) InMemoryStorageFactory(io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory) StreamSegmentContainerFactory(io.pravega.segmentstore.server.containers.StreamSegmentContainerFactory) StorageWriterFactory(io.pravega.segmentstore.server.writer.StorageWriterFactory) WriterFactory(io.pravega.segmentstore.server.WriterFactory) OperationLogFactory(io.pravega.segmentstore.server.OperationLogFactory)

Aggregations

OperationLogFactory (io.pravega.segmentstore.server.OperationLogFactory)1 ReadIndexFactory (io.pravega.segmentstore.server.ReadIndexFactory)1 WriterFactory (io.pravega.segmentstore.server.WriterFactory)1 ContainerConfig (io.pravega.segmentstore.server.containers.ContainerConfig)1 StreamSegmentContainerFactory (io.pravega.segmentstore.server.containers.StreamSegmentContainerFactory)1 ContainerReadIndexFactory (io.pravega.segmentstore.server.reading.ContainerReadIndexFactory)1 StorageWriterFactory (io.pravega.segmentstore.server.writer.StorageWriterFactory)1 StorageFactory (io.pravega.segmentstore.storage.StorageFactory)1 InMemoryStorageFactory (io.pravega.segmentstore.storage.mocks.InMemoryStorageFactory)1