Search in sources :

Example 1 with FileSystemStorageConfig

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());
}
Also used : FileSystemStorageFactory(io.pravega.storage.filesystem.FileSystemStorageFactory) FileSystemStorageConfig(io.pravega.storage.filesystem.FileSystemStorageConfig) Before(org.junit.Before)

Example 2 with FileSystemStorageConfig

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());
}
Also used : ChunkedSegmentStorageConfig(io.pravega.segmentstore.storage.chunklayer.ChunkedSegmentStorageConfig) FileSystemSimpleStorageFactory(io.pravega.storage.filesystem.FileSystemSimpleStorageFactory) FileSystemStorageConfig(io.pravega.storage.filesystem.FileSystemStorageConfig) Before(org.junit.Before)

Aggregations

FileSystemStorageConfig (io.pravega.storage.filesystem.FileSystemStorageConfig)2 Before (org.junit.Before)2 ChunkedSegmentStorageConfig (io.pravega.segmentstore.storage.chunklayer.ChunkedSegmentStorageConfig)1 FileSystemSimpleStorageFactory (io.pravega.storage.filesystem.FileSystemSimpleStorageFactory)1 FileSystemStorageFactory (io.pravega.storage.filesystem.FileSystemStorageFactory)1