use of io.pravega.segmentstore.server.ReadIndexFactory in project pravega by pravega.
the class ServiceBuilder method createSegmentContainerFactory.
protected SegmentContainerFactory createSegmentContainerFactory() {
ReadIndexFactory readIndexFactory = getSingleton(this.readIndexFactory, this::createReadIndexFactory);
AttributeIndexFactory attributeIndexFactory = getSingleton(this.attributeIndexFactory, this::createAttributeIndexFactory);
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, attributeIndexFactory, writerFactory, storageFactory, this::createContainerExtensions, this.coreExecutor);
}
Aggregations