@Override public Void call() { delegate().removeBlob(containerName, blobName); return null; } });
private static void handleBlobRemove(HttpServletResponse response, BlobStore blobStore, String containerName, String blobName) throws IOException, S3Exception { blobStore.removeBlob(containerName, blobName); response.sendError(HttpServletResponse.SC_NO_CONTENT); }
@Override public void removeBlob(final String containerName, final String blobName) { writeStore.removeBlob(containerName, blobName); schedule(new Callable<Void>() { @Override public Void call() { delegate().removeBlob(containerName, blobName); return null; } }); }
private static void handleAbortMultipartUpload(HttpServletResponse response, BlobStore blobStore, String containerName, String blobName, String uploadId) throws IOException, S3Exception { if (Quirks.MULTIPART_REQUIRES_STUB.contains(getBlobStoreType( blobStore))) { if (!blobStore.blobExists(containerName, uploadId)) { throw new S3Exception(S3ErrorCode.NO_SUCH_UPLOAD); } blobStore.removeBlob(containerName, uploadId); } // TODO: how to reconstruct original mpu? MultipartUpload mpu = MultipartUpload.create(containerName, blobName, uploadId, createFakeBlobMetadata(blobStore), new PutOptions()); blobStore.abortMultipartUpload(mpu); response.sendError(HttpServletResponse.SC_NO_CONTENT); }
blobStore.removeBlob(containerName, uploadId);
@Override public Void call() throws Exception { blobstore.removeBlob(containerName, name); return null; } }));
@Override public Void call() { blobStore.removeBlob(containerName, fullPath); return null; } });
private void removeMetaData(String name) { if (this.accessStore || this.atmosStore || b2Store) { blobStore.removeBlob(this.name, name + mdExt); } }
@Override public Void call() throws Exception { blobstore.removeBlob(containerName, name); return null; } }));
@Override public Void call() { delegate().removeBlob(containerName, blobName); return null; } });
@Override public Void call() { delegate().removeBlob(containerName, blobName); return null; } });
@Override public Blob remove(Object key) { Blob old = getLastValue(checkNotNull(key, "key")); String realKey = prefixer.apply(key.toString()); blobstore.removeBlob(containerName, realKey); return old; }
@Override public InputStream remove(Object o) { InputStream old = get(o); String realKey = prefixer.apply(o.toString()); blobstore.removeBlob(containerName, realKey); return old; }
@Override public void removeBlob(final String containerName, final String blobName) { writeStore.removeBlob(containerName, blobName); schedule(new Callable<Void>() { @Override public Void call() { delegate().removeBlob(containerName, blobName); return null; } }); }
@Override public void destroy() throws IOException { context.getBlobStore().removeBlob(container, blobName); } }
public int listAfterDelete() throws IOException { int count = 0; for (int i = 0; i < iterations; ++i) { String blobName = makeBlobName(); blobStoreRead.putBlob(containerName, makeBlob(blobName, payload1)); blobStore.removeBlob(containerName, blobName); if (listAllBlobs().contains(blobName)) { ++count; } } return count; }
public int listAfterCreate() throws IOException { int count = 0; for (int i = 0; i < iterations; ++i) { String blobName = makeBlobName(); blobStore.putBlob(containerName, makeBlob(blobName, payload1)); if (!listAllBlobs().contains(blobName)) { ++count; } blobStore.removeBlob(containerName, blobName); } return count; }
@Test(groups = { "integration", "live" }) public void deleteObjectNoContainer() { try { view.getBlobStore().removeBlob("donb", "test"); } catch (HttpResponseException e) { assertEquals(e.getResponse().getStatusCode(), 404); } catch (ContainerNotFoundException e) { } }
@Test(groups = { "integration", "live" }) public void deleteObjectNotFound() throws InterruptedException { String container = getContainerName(); String name = "test"; try { view.getBlobStore().removeBlob(container, name); } finally { returnContainer(container); } }
@Test(groups = { "integration", "live" }, dataProvider = "delete") public void deleteObject(String name) throws InterruptedException { String container = getContainerName(); try { addBlobToContainer(container, name, name, MediaType.TEXT_PLAIN); view.getBlobStore().removeBlob(container, name); assertContainerEmptyDeleting(container, name); } finally { returnContainer(container); } }