public SpectraDeleteFeature(final SpectraSession session) { super(session, new S3DisabledMultipartService()); this.session = session; }
public SpectraWriteFeature(final SpectraSession session, final Find finder, final AttributesFinder attributes) { super(session, new S3DisabledMultipartService(), finder, attributes); }
public S3TouchFeature(final S3Session session) { this.session = session; this.writer = new S3WriteFeature(session, new S3DisabledMultipartService()); }
final S3Object part = new S3WriteFeature(session, new S3DisabledMultipartService()) .getDetails(file, status); try {
return (T) new S3SingleUploadService(this, new S3WriteFeature(this, new S3DisabledMultipartService())); return (T) new S3WriteFeature(this, new S3DisabledMultipartService()); return (T) new GoogleStorageDirectoryFeature(this, new S3WriteFeature(this, new S3DisabledMultipartService()));
@Override public HttpResponseOutputStream<VersionId> write(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { final S3Object object = new S3WriteFeature(session, new S3DisabledMultipartService()) .getDetails(file, status); // ID for the initiated multipart upload. final MultipartUpload multipart; try { multipart = session.getClient().multipartStartUpload( containerService.getContainer(file).getName(), object); if(log.isDebugEnabled()) { log.debug(String.format("Multipart upload started for %s with ID %s", multipart.getObjectKey(), multipart.getUploadId())); } } catch(ServiceException e) { throw new S3ExceptionMappingService().map("Upload {0} failed", e, file); } final MultipartOutputStream proxy = new MultipartOutputStream(multipart, file, status); return new HttpResponseOutputStream<VersionId>(new MemorySegementingOutputStream(proxy, preferences.getInteger("s3.upload.multipart.partsize.minimum"))) { @Override public VersionId getStatus() { return proxy.getVersionId(); } }; }
log.info("No pending multipart upload found"); final S3Object object = new S3WriteFeature(session, new S3DisabledMultipartService()) .getDetails(file, status);
return (T) new S3DirectoryFeature(this, new S3WriteFeature(this, new S3DisabledMultipartService()));