use of io.pravega.storage.filesystem.FileSystemStorageConfig in project pravega by pravega.
the class DataRecoveryTest method setUp.
@Before
public void setUp() throws Exception {
this.baseDir = Files.createTempDirectory("TestDataRecovery").toFile().getAbsoluteFile();
this.logsDir = Files.createTempDirectory("DataRecovery").toFile().getAbsoluteFile();
FileSystemStorageConfig adapterConfig = FileSystemStorageConfig.builder().with(FileSystemStorageConfig.ROOT, this.baseDir.getAbsolutePath()).with(FileSystemStorageConfig.REPLACE_ENABLED, true).build();
this.storageFactory = new FileSystemStorageFactory(adapterConfig, executorService());
}
use of io.pravega.storage.filesystem.FileSystemStorageConfig 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