use of io.pravega.segmentstore.storage.chunklayer.ChunkedSegmentStorageConfig in project pravega by pravega.
the class StorageCommandsTest method setUp.
@Before
public void setUp() throws Exception {
this.baseDir = Files.createTempDirectory("TestStorage").toFile().getAbsoluteFile();
this.logsDir = Files.createTempDirectory("Storage").toFile().getAbsoluteFile();
FileSystemStorageConfig adapterConfig = FileSystemStorageConfig.builder().with(FileSystemStorageConfig.ROOT, this.baseDir.getAbsolutePath()).with(FileSystemStorageConfig.REPLACE_ENABLED, true).build();
ChunkedSegmentStorageConfig config = ChunkedSegmentStorageConfig.DEFAULT_CONFIG;
this.storageFactory = new FileSystemSimpleStorageFactory(config, adapterConfig, executorService());
}
Aggregations