@Test public void testDelete() throws Exception { final Path bucket = new Path("test-cyberduck", EnumSet.of(Path.Type.directory, Path.Type.volume)); final Path file = new Path(bucket, UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)); final B2StartLargeFileResponse startResponse = session.getClient().startLargeFileUpload( new B2FileidProvider(session).withCache(cache).getFileid(bucket, new DisabledListProgressListener()), file.getName(), null, Collections.emptyMap()); final String fileid = startResponse.getFileId(); new B2LargeUploadPartService(session, new B2FileidProvider(session).withCache(cache)).delete(startResponse.getFileId()); }
public void delete(final String id) throws BackgroundException { if(log.isInfoEnabled()) { log.info(String.format("Delete multipart upload for fileid %s", id)); } try { session.getClient().cancelLargeFileUpload(id); } catch(B2ApiException e) { throw new B2ExceptionMappingService().map(e); } catch(IOException e) { throw new DefaultIOExceptionMappingService().map(e); } }
B2LargeUploadPartService { public void delete(final String id) throws BackgroundException { if(log.isInfoEnabled()) { log.info(String.format("Delete multipart upload for fileid %s", id)); } try { session.getClient().cancelLargeFileUpload(id); } catch(B2ApiException e) { throw new B2ExceptionMappingService().map(e); } catch(IOException e) { throw new DefaultIOExceptionMappingService().map(e); } } }
B2LargeUploadPartService { public void delete(final String id) throws BackgroundException { if(log.isInfoEnabled()) { log.info(String.format("Delete multipart upload for fileid %s", id)); } try { session.getClient().cancelLargeFileUpload(id); } catch(B2ApiException e) { throw new B2ExceptionMappingService().map(e); } catch(IOException e) { throw new DefaultIOExceptionMappingService().map(e); } } B2LargeUploadPartService(final B2Session session, final B2FileidProvider fileid); }
B2LargeUploadPartService { public void delete(final String id) throws BackgroundException { if(log.isInfoEnabled()) { log.info(String.format("Delete multipart upload for fileid %s", id)); } try { session.getClient().cancelLargeFileUpload(id); } catch(B2ApiException e) { throw new B2ExceptionMappingService().map(e); } catch(IOException e) { throw new DefaultIOExceptionMappingService().map(e); } } B2LargeUploadPartService(final B2Session session, final B2FileidProvider fileid); List<B2FileInfoResponse> find(final Path file); List<B2UploadPartResponse> list(final String fileid); void delete(final String id); }
B2LargeUploadPartService { public void delete(final String id) throws BackgroundException { if(log.isInfoEnabled()) { log.info(String.format("Delete multipart upload for fileid %s", id)); } try { session.getClient().cancelLargeFileUpload(id); } catch(B2ApiException e) { throw new B2ExceptionMappingService().map(e); } catch(IOException e) { throw new DefaultIOExceptionMappingService().map(e); } } B2LargeUploadPartService(final B2Session session, final B2FileidProvider fileid); List<B2FileInfoResponse> find(final Path file); List<B2UploadPartResponse> list(final String fileid); void delete(final String id);  }