mirror of https://github.com/apache/jclouds.git
Merge pull request #722 from andrewgaul/filesystem-transient-misc
Reduce filesystem and transient differences
This commit is contained in:
commit
880388d035
|
@ -402,8 +402,7 @@ public class FilesystemAsyncBlobStore extends BaseAsyncBlobStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HttpResponseException returnResponseException(int code) {
|
public static HttpResponseException returnResponseException(int code) {
|
||||||
HttpResponse response = null;
|
HttpResponse response = HttpResponse.builder().statusCode(code).build();
|
||||||
response = HttpResponse.builder().statusCode(code).build();
|
|
||||||
return new HttpResponseException(new HttpCommand() {
|
return new HttpResponseException(new HttpCommand() {
|
||||||
|
|
||||||
public int getRedirectCount() {
|
public int getRedirectCount() {
|
||||||
|
|
|
@ -115,33 +115,33 @@ public class TransientAsyncBlobStore extends BaseAsyncBlobStore {
|
||||||
|
|
||||||
protected final DateService dateService;
|
protected final DateService dateService;
|
||||||
protected final Crypto crypto;
|
protected final Crypto crypto;
|
||||||
protected final Provider<UriBuilder> uriBuilders;
|
|
||||||
protected final HttpGetOptionsListToGetOptions httpGetOptionsConverter;
|
protected final HttpGetOptionsListToGetOptions httpGetOptionsConverter;
|
||||||
|
protected final ContentMetadataCodec contentMetadataCodec;
|
||||||
protected final IfDirectoryReturnNameStrategy ifDirectoryReturnName;
|
protected final IfDirectoryReturnNameStrategy ifDirectoryReturnName;
|
||||||
protected final Factory blobFactory;
|
protected final Factory blobFactory;
|
||||||
protected final TransientStorageStrategy storageStrategy;
|
protected final TransientStorageStrategy storageStrategy;
|
||||||
protected final ContentMetadataCodec contentMetadataCodec;
|
protected final Provider<UriBuilder> uriBuilders;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
protected TransientAsyncBlobStore(BlobStoreContext context,
|
protected TransientAsyncBlobStore(BlobStoreContext context,
|
||||||
DateService dateService, Crypto crypto,
|
DateService dateService, Crypto crypto,
|
||||||
HttpGetOptionsListToGetOptions httpGetOptionsConverter,
|
HttpGetOptionsListToGetOptions httpGetOptionsConverter,
|
||||||
|
ContentMetadataCodec contentMetadataCodec,
|
||||||
IfDirectoryReturnNameStrategy ifDirectoryReturnName,
|
IfDirectoryReturnNameStrategy ifDirectoryReturnName,
|
||||||
BlobUtils blobUtils,
|
BlobUtils blobUtils,
|
||||||
@Named(Constants.PROPERTY_USER_THREADS) ExecutorService service,
|
@Named(Constants.PROPERTY_USER_THREADS) ExecutorService service,
|
||||||
Supplier<Location> defaultLocation,
|
Supplier<Location> defaultLocation,
|
||||||
@Memoized Supplier<Set<? extends Location>> locations,
|
@Memoized Supplier<Set<? extends Location>> locations,
|
||||||
Factory blobFactory, Provider<UriBuilder> uriBuilders,
|
Factory blobFactory, Provider<UriBuilder> uriBuilders) {
|
||||||
ContentMetadataCodec contentMetadataCodec) {
|
|
||||||
super(context, blobUtils, service, defaultLocation, locations);
|
super(context, blobUtils, service, defaultLocation, locations);
|
||||||
this.blobFactory = blobFactory;
|
this.blobFactory = blobFactory;
|
||||||
this.dateService = dateService;
|
this.dateService = dateService;
|
||||||
this.crypto = crypto;
|
this.crypto = crypto;
|
||||||
this.uriBuilders = uriBuilders;
|
|
||||||
this.httpGetOptionsConverter = httpGetOptionsConverter;
|
this.httpGetOptionsConverter = httpGetOptionsConverter;
|
||||||
|
this.contentMetadataCodec = contentMetadataCodec;
|
||||||
this.ifDirectoryReturnName = ifDirectoryReturnName;
|
this.ifDirectoryReturnName = ifDirectoryReturnName;
|
||||||
this.storageStrategy = new TransientStorageStrategy(defaultLocation);
|
this.storageStrategy = new TransientStorageStrategy(defaultLocation);
|
||||||
this.contentMetadataCodec = contentMetadataCodec;
|
this.uriBuilders = uriBuilders;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue