public FileManager newFileManager(final FileType fileType, final String storePath,
                                      final AllocateFileService allocateService) {
        final FileManager.FileManagerBuilder fileManagerBuilder = FileManager.newBuilder() //
            .fileType(fileType) //
            .fileSize(getFileSize(fileType)) //
            .storePath(storePath) //
            .logStoreFactory(this) //
            .allocateService(allocateService);
        return fileManagerBuilder.build();
    }
Create new fileManager(index/segment/conf)
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/factory/LogStoreFactory.java