use of org.elasticsearch.common.blobstore.fs.FsBlobStore in project elasticsearch by elastic.
the class FsBlobStoreContainerTests method newBlobStore.
protected BlobStore newBlobStore() throws IOException {
Path tempDir = createTempDir();
Settings settings = randomBoolean() ? Settings.EMPTY : Settings.builder().put("buffer_size", new ByteSizeValue(randomIntBetween(1, 100), ByteSizeUnit.KB)).build();
return new FsBlobStore(settings, tempDir);
}
use of org.elasticsearch.common.blobstore.fs.FsBlobStore in project elasticsearch by elastic.
the class FsBlobStoreTests method newBlobStore.
protected BlobStore newBlobStore() throws IOException {
Path tempDir = createTempDir();
Settings settings = randomBoolean() ? Settings.EMPTY : Settings.builder().put("buffer_size", new ByteSizeValue(randomIntBetween(1, 100), ByteSizeUnit.KB)).build();
return new FsBlobStore(settings, tempDir);
}
use of org.elasticsearch.common.blobstore.fs.FsBlobStore in project crate by crate.
the class FsRepository method createBlobStore.
@Override
protected BlobStore createBlobStore() throws Exception {
final String location = REPOSITORIES_LOCATION_SETTING.get(getMetadata().settings());
final Path locationFile = environment.resolveRepoFile(location);
return new FsBlobStore(environment.settings(), locationFile);
}
Aggregations