Tabnine Logo
Image.getRootDeviceType
Code IndexAdd Tabnine to your IDE (free)

How to use
getRootDeviceType
method
in
org.jclouds.ec2.domain.Image

Best Java code snippets using org.jclouds.ec2.domain.Image.getRootDeviceType (Showing top 9 results out of 315)

origin: apache/jclouds

private void verifyImage() {
 assertEquals(ebsImage.getImageType(), ImageType.MACHINE);
 assertEquals(ebsImage.getRootDeviceType(), RootDeviceType.EBS);
 assertEquals(ebsImage.getRootDeviceName(), "/dev/sda1");
 assertEquals(ebsImage.getEbsBlockDevices().entrySet(),
    ImmutableMap.of("/dev/sda1", new Image.EbsBlockDevice(snapshot.getId(), VOLUME_SIZE, true, "standard", null, false)).entrySet());
}
origin: jclouds/legacy-jclouds

private void verifyImage() {
 assertEquals(ebsImage.getImageType(), ImageType.MACHINE);
 assertEquals(ebsImage.getRootDeviceType(), RootDeviceType.EBS);
 assertEquals(ebsImage.getRootDeviceName(), "/dev/sda1");
 assertEquals(ebsImage.getEbsBlockDevices().entrySet(),
    ImmutableMap.of("/dev/sda1", new Image.EbsBlockDevice(snapshot.getId(), VOLUME_SIZE, true)).entrySet());
}
origin: apache/jclouds

assertEquals(ebsBackedImage.getName(), ebsBackedImageName);
assertEquals(ebsBackedImage.getImageType(), ImageType.MACHINE);
assertEquals(ebsBackedImage.getRootDeviceType(), RootDeviceType.EBS);
assertEquals(ebsBackedImage.getRootDeviceName(), "/dev/sda1");
assertEquals(ebsBackedImage.getDescription(), "adrian");
origin: jclouds/legacy-jclouds

@Test
public void testCreateAndListEBSBackedImage() throws Exception {
 Snapshot snapshot = createSnapshot();
 // List of images before...
 int sizeBefore = client.describeImagesInRegion(regionId).size();
 // Register a new image...
 ebsBackedImageId = client.registerUnixImageBackedByEbsInRegion(regionId, ebsBackedImageName, snapshot.getId(),
    addNewBlockDevice("/dev/sda2", "myvirtual", 1).withDescription("adrian"));
 imagesToDeregister.add(ebsBackedImageId);
 final Image ebsBackedImage = getOnlyElement(client.describeImagesInRegion(regionId, imageIds(ebsBackedImageId)));
 assertEquals(ebsBackedImage.getName(), ebsBackedImageName);
 assertEquals(ebsBackedImage.getImageType(), ImageType.MACHINE);
 assertEquals(ebsBackedImage.getRootDeviceType(), RootDeviceType.EBS);
 assertEquals(ebsBackedImage.getRootDeviceName(), "/dev/sda1");
 assertEquals(ebsBackedImage.getDescription(), "adrian");
 assertEquals(
    ebsBackedImage.getEbsBlockDevices().entrySet(),
    ImmutableMap.of("/dev/sda1", new Image.EbsBlockDevice(snapshot.getId(), snapshot.getVolumeSize(), true),
       "/dev/sda2", new Image.EbsBlockDevice(null, 1, false)).entrySet());
 // List of images after - should be one larger than before
 int after = client.describeImagesInRegion(regionId).size();
 assertEquals(after, sizeBefore + 1);
}
origin: jclouds/legacy-jclouds

builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
     from.getVirtualizationType().value()).put("hypervisor", from.getHypervisor().value()).build());
origin: com.amysta.jclouds.api/ec2

builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
     from.getVirtualizationType().value()).put("hypervisor", from.getHypervisor().value()).build());
origin: org.jclouds.api/ec2

builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
     from.getVirtualizationType().value()).put("hypervisor", from.getHypervisor().value()).build());
origin: org.apache.jclouds.api/ec2

builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
     from.getVirtualizationType().value()).put("hypervisor", from.getHypervisor().value()).build());
origin: apache/jclouds

builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
     from.getVirtualizationType().value()).put("hypervisor", from.getHypervisor().value()).build());
org.jclouds.ec2.domainImagegetRootDeviceType

Popular methods of Image

  • getId
    The ID of the AMI.
  • getImageType
    The type of image (machine, kernel, or ramdisk).
  • getName
  • <init>
  • getImageLocation
    The location of the AMI.
  • getDescription
  • getImageState
    Current state of the AMI. If the operation returns available, the image is successfully registered a
  • getRawState
    raw form of #getImageState() as taken directly from the api response xml document/
  • getRegion
    To be removed in jclouds 1.6 WARNING Especially on EC2 clones that may not support regions, this val
  • getArchitecture
    The architecture of the image (i386 or x86_64).
  • getHypervisor
  • getImageOwnerId
    AWS Access Key ID of the image owner.
  • getHypervisor,
  • getImageOwnerId,
  • getPlatform,
  • getVirtualizationType,
  • getEbsBlockDevices,
  • getKernelId,
  • getRamdiskId,
  • getRootDeviceName,
  • getTags

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Join (org.hibernate.mapping)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now