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);
}
Aggregations