attachment.getVolumeId()));if(volume.getAttachments().size()==0){returnfalse;}AttachmentlastAttachment=Sets.newTreeSet(volume.getAttachments()).last();logger.trace("%s: looking for status %s
return volume.getStatus() == Volume.Status.AVAILABLE; } 代码示例来源:origin: org.apache.jclouds.api/ec2 public boolean apply(Volume volume) { logger.trace("looking for status on volume %s", volume.getId()); volume = Iterables.getOnlyElement(client.describeVolumesInRegion(volume.getRegion(),...
createVolumeFromSnapshotInAvailabilityZone(defaultZone, snapshot.getId()); assertNotNull(volume); Predicate<Volume> availabile = retry(new VolumeAvailable(client), 600, 10, SECONDS); assert availabile.apply(volume); Volume result = Iterables.getOnlyElement(client.describeVolumesInRegion(defaultRegion,...
本文整理了Java中org.jclouds.ec2.domain.Volume.getRegion()方法的一些代码示例,展示了Volume.getRegion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Volume.getRegion()方法的具体详情如下:包路径:org.jclouds....
包路径:org.jclouds.ec2.domain.Volume类名称:Volume方法名:getAttachments Volume.getAttachments介绍 暂无 代码示例 代码示例来源:origin: jclouds/legacy-jclouds public boolean apply(Attachment attachment) { logger.trace("looking for volume %s", attachment.getVolumeId()); Volume volume = Iterables.getOnly...