本文整理了Java中org.jclouds.ec2.domain.Volume.<init>()
方法的一些代码示例,展示了Volume.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Volume.<init>()
方法的具体详情如下:
包路径:org.jclouds.ec2.domain.Volume
类名称:Volume
方法名:<init>
暂无
代码示例来源:origin: apache/jclouds
public Volume build() {
return new Volume(region, id, size, snapshotId, availabilityZone, status, createTime,
volumeType, iops, encrypted, attachments);
}
代码示例来源:origin: org.apache.jclouds.api/ec2
public Volume build() {
return new Volume(region, id, size, snapshotId, availabilityZone, status, createTime,
volumeType, iops, encrypted, attachments);
}
代码示例来源:origin: jclouds/legacy-jclouds
public Volume build() {
return new Volume(region, id, size, snapshotId, availabilityZone, status, createTime, attachments);
}
代码示例来源:origin: com.amysta.jclouds.api/ec2
public Volume build() {
return new Volume(region, id, size, snapshotId, availabilityZone, status, createTime,
volumeType, iops, encrypted, attachments);
}
代码示例来源:origin: org.jclouds.api/ec2
public Volume build() {
return new Volume(region, id, size, snapshotId, availabilityZone, status, createTime, attachments);
}
代码示例来源:origin: jclouds/legacy-jclouds
private Volume newVolume() {
Volume volume = new Volume(region, id, size, snapshotId, availabilityZone, volumeStatus, createTime, attachments);
id = null;
size = 0;
snapshotId = null;
availabilityZone = null;
volumeStatus = null;
createTime = null;
attachments = Sets.newLinkedHashSet();
return volume;
}
代码示例来源:origin: org.jclouds.api/ec2
private Volume newVolume() {
Volume volume = new Volume(region, id, size, snapshotId, availabilityZone, volumeStatus, createTime, attachments);
id = null;
size = 0;
snapshotId = null;
availabilityZone = null;
volumeStatus = null;
createTime = null;
attachments = Sets.newLinkedHashSet();
return volume;
}
代码示例来源:origin: stackoverflow.com
Volume volume1 = new Volume("/opt/webapp1");
Volume volume2 = new Volume("/opt/webapp2");
CreateContainerResponse container = dockerClient.createContainerCmd("busybox").withVolumes(volume1, volume2)
.withCmd("true").withBinds(new Bind("/src/webapp1", volume1, ro), new Bind("/src/webapp2", volume2))
.exec();
代码示例来源:origin: org.apache.jclouds.api/ec2
private Volume newVolume() {
Volume volume = new Volume(region, id, size, snapshotId, availabilityZone, volumeStatus, createTime,
volumeType, iops, encrypted, attachments);
id = null;
size = 0;
snapshotId = null;
availabilityZone = null;
volumeStatus = null;
createTime = null;
attachments = Sets.newLinkedHashSet();
volumeType = null;
iops = null;
encrypted = false;
return volume;
}
代码示例来源:origin: com.amysta.jclouds.api/ec2
private Volume newVolume() {
Volume volume = new Volume(region, id, size, snapshotId, availabilityZone, volumeStatus, createTime,
volumeType, iops, encrypted, attachments);
id = null;
size = 0;
snapshotId = null;
availabilityZone = null;
volumeStatus = null;
createTime = null;
attachments = Sets.newLinkedHashSet();
volumeType = null;
iops = null;
encrypted = false;
return volume;
}
代码示例来源:origin: apache/jclouds
private Volume newVolume() {
Volume volume = new Volume(region, id, size, snapshotId, availabilityZone, volumeStatus, createTime,
volumeType, iops, encrypted, attachments);
id = null;
size = 0;
snapshotId = null;
availabilityZone = null;
volumeStatus = null;
createTime = null;
attachments = Sets.newLinkedHashSet();
volumeType = null;
iops = null;
encrypted = false;
return volume;
}
代码示例来源:origin: jclouds/legacy-jclouds
public void testApplyInputStream() {
DateService dateService = injector.getInstance(DateService.class);
InputStream is = getClass().getResourceAsStream("/created_volume.xml");
Volume expected = new Volume(Region.US_EAST_1, "vol-2a21e543", 1, null,
"us-east-1a", Volume.Status.CREATING, dateService
.iso8601DateParse("2009-12-28T05:42:53.000Z"), Sets
.<Attachment> newLinkedHashSet());
CreateVolumeResponseHandler handler = injector.getInstance(CreateVolumeResponseHandler.class);
addDefaultRegionToHandler(handler);
Volume result = factory.create(handler).parse(is);
assertEquals(result, expected);
}
代码示例来源:origin: apache/jclouds
public void testApplyInputStream() {
DateService dateService = injector.getInstance(DateService.class);
InputStream is = getClass().getResourceAsStream("/created_volume.xml");
Volume expected = new Volume(Region.US_EAST_1, "vol-2a21e543", 1, null,
"us-east-1a", Volume.Status.CREATING, dateService
.iso8601DateParse("2009-12-28T05:42:53.000Z"), "standard", 0, false,
Sets.<Attachment> newLinkedHashSet());
CreateVolumeResponseHandler handler = injector.getInstance(CreateVolumeResponseHandler.class);
addDefaultRegionToHandler(handler);
Volume result = factory.create(handler).parse(is);
assertEquals(result, expected);
}
代码示例来源:origin: jclouds/legacy-jclouds
public void testApplyInputStream() {
DateService dateService = injector.getInstance(DateService.class);
InputStream is = getClass().getResourceAsStream("/describe_volumes.xml");
Set<Volume> expected = Sets.newLinkedHashSet();
expected.add(new Volume(defaultRegion, "vol-2a21e543", 1, null, "us-east-1a",
Volume.Status.AVAILABLE, dateService.iso8601DateParse("2009-12-28T05:42:53.000Z"),
Sets.<Attachment> newLinkedHashSet()));
expected.add(new Volume(defaultRegion, "vol-4282672b", 800, "snap-536d1b3a",
"us-east-1a", Volume.Status.IN_USE, dateService
.iso8601DateParse("2008-05-07T11:51:50.000Z"), Sets
.<Attachment> newHashSet(new Attachment(defaultRegion, "vol-4282672b", "i-6058a509",
"/dev/sdh", Attachment.Status.ATTACHED, dateService
.iso8601DateParse("2008-05-07T12:51:50.000Z")))));
DescribeVolumesResponseHandler handler = injector
.getInstance(DescribeVolumesResponseHandler.class);
addDefaultRegionToHandler(handler);
Set<Volume> result = factory.create(handler).parse(is);
assertEquals(result, expected);
}
代码示例来源:origin: apache/jclouds
public void testApplyInputStream() {
DateService dateService = injector.getInstance(DateService.class);
InputStream is = getClass().getResourceAsStream("/describe_volumes.xml");
Set<Volume> expected = Sets.newLinkedHashSet();
expected.add(new Volume(defaultRegion, "vol-2a21e543", 1, null, "us-east-1a",
Volume.Status.AVAILABLE, dateService.iso8601DateParse("2009-12-28T05:42:53.000Z"),
"standard", 0, false, Sets.<Attachment> newLinkedHashSet()));
expected.add(new Volume(defaultRegion, "vol-4282672b", 800, "snap-536d1b3a",
"us-east-1a", Volume.Status.IN_USE, dateService
.iso8601DateParse("2008-05-07T11:51:50.000Z"),
"standard", 0, false,
Sets.<Attachment> newHashSet(new Attachment(defaultRegion, "vol-4282672b", "i-6058a509",
"/dev/sdh", Attachment.Status.ATTACHED, dateService
.iso8601DateParse("2008-05-07T12:51:50.000Z")))));
DescribeVolumesResponseHandler handler = injector
.getInstance(DescribeVolumesResponseHandler.class);
addDefaultRegionToHandler(handler);
Set<Volume> result = factory.create(handler).parse(is);
assertEquals(result, expected);
}
内容来源于网络,如有侵权,请联系作者删除!