本文整理了Java中org.jclouds.blobstore.BlobStore.removeBlobs()
方法的一些代码示例,展示了BlobStore.removeBlobs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BlobStore.removeBlobs()
方法的具体详情如下:
包路径:org.jclouds.blobstore.BlobStore
类名称:BlobStore
方法名:removeBlobs
[英]Deletes multiple Blobs representing the data at location container/name
[中]删除表示容器/名称位置处的数据的多个Blob
代码示例来源:origin: gaul/s3proxy
@Override
public Void call() {
delegate().removeBlobs(containerName, blobNames);
return null;
}
});
代码示例来源:origin: gaul/s3proxy
@Override
public void removeBlobs(final String containerName,
final Iterable<String> blobNames) {
writeStore.removeBlobs(containerName, blobNames);
schedule(new Callable<Void>() {
@Override
public Void call() {
delegate().removeBlobs(containerName, blobNames);
return null;
}
});
}
代码示例来源:origin: gaul/s3proxy
blobStore.removeBlobs(containerName, blobNames);
代码示例来源:origin: org.apache.camel/camel-jclouds
/**
* Delete a list of {@link BlobStore} blob
*/
public static void removeBlobs(BlobStore blobStore, String container, List blobNames) throws IOException {
blobStore.removeBlobs(container, blobNames);
}
}
代码示例来源:origin: org.gaul/s3proxy
@Override
public Void call() {
delegate().removeBlobs(containerName, blobNames);
return null;
}
});
代码示例来源:origin: Nextdoor/bender
@Override
public Void call() {
delegate().removeBlobs(containerName, blobNames);
return null;
}
});
代码示例来源:origin: Nextdoor/bender
@Override
public void removeBlobs(final String containerName,
final Iterable<String> blobNames) {
writeStore.removeBlobs(containerName, blobNames);
schedule(new Callable<Void>() {
@Override
public Void call() {
delegate().removeBlobs(containerName, blobNames);
return null;
}
});
}
代码示例来源:origin: org.gaul/s3proxy
@Override
public void removeBlobs(final String containerName,
final Iterable<String> blobNames) {
writeStore.removeBlobs(containerName, blobNames);
schedule(new Callable<Void>() {
@Override
public Void call() {
delegate().removeBlobs(containerName, blobNames);
return null;
}
});
}
代码示例来源:origin: org.apache.jclouds/jclouds-blobstore
@Override
public void removeBlobs(String container, Iterable<String> iterable) {
delegate().removeBlobs(container, iterable);
}
代码示例来源:origin: com.amysta.jclouds/jclouds-blobstore
@Override
public void removeBlobs(String container, Iterable<String> iterable) {
delegate().removeBlobs(container, iterable);
}
代码示例来源:origin: Nextdoor/bender
@Override
public void removeBlobs(String container, Iterable<String> iterable) {
delegate().removeBlobs(container, iterable);
}
代码示例来源:origin: apache/jclouds
@Override
public void removeBlobs(String container, Iterable<String> iterable) {
delegate().removeBlobs(container, iterable);
}
代码示例来源:origin: cloudfoundry-incubator/multiapps-controller
private int removeBlobsByFilter(Predicate<? super StorageMetadata> filter) {
Set<String> entriesToDelete = blobStore.list(container, new ListContainerOptions().withDetails())
.stream()
.filter(filter)
.map(StorageMetadata::getName)
.collect(Collectors.toSet());
if (!entriesToDelete.isEmpty()) {
blobStore.removeBlobs(container, entriesToDelete);
}
return entriesToDelete.size();
}
代码示例来源:origin: Nextdoor/bender
blobStore.removeBlobs(containerName, blobNames);
代码示例来源:origin: org.gaul/s3proxy
blobStore.removeBlobs(containerName, blobNames);
代码示例来源:origin: apache/jclouds
@Test(groups = { "integration", "live" }, dataProvider = "delete")
public void deleteMultipleObjects(String name) throws InterruptedException {
String name2 = name + "2";
String container = getContainerName();
try {
addBlobToContainer(container, name, name, MediaType.TEXT_PLAIN);
addBlobToContainer(container, name2, name2, MediaType.TEXT_PLAIN);
awaitConsistency();
view.getBlobStore().removeBlobs(container, ImmutableSet.of(name, name2));
awaitConsistency();
assertContainerEmptyDeleting(container, name);
} finally {
returnContainer(container);
}
}
内容来源于网络,如有侵权,请联系作者删除!