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

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

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

origin: jclouds/legacy-jclouds

  /** 
  * First treats windows as a special case: check if platform==windows.
  * Then tries matching based on the image name.
  * And then falls back to checking other types of platform.
  */
  private OsFamily parseOsFamily(org.jclouds.ec2.domain.Image from) {
   if (from.getPlatform() != null && from.getPlatform().equalsIgnoreCase("windows")) {
     return OsFamily.WINDOWS;
   }
   
   OsFamily family = parseOsFamilyOrUnrecognized(from.getImageLocation());
   if (family == OsFamily.UNRECOGNIZED && from.getPlatform() != null) {
     family = parseOsFamilyOrUnrecognized(from.getPlatform());
   }
   return family;
  }
}
origin: com.amysta.jclouds.api/ec2

  /** 
  * First treats windows as a special case: check if platform==windows.
  * Then tries matching based on the image name.
  * And then falls back to checking other types of platform.
  */
  private OsFamily parseOsFamily(org.jclouds.ec2.domain.Image from) {
   if (from.getPlatform() != null && from.getPlatform().equalsIgnoreCase("windows")) {
     return OsFamily.WINDOWS;
   }
   
   OsFamily family = parseOsFamilyOrUnrecognized(from.getImageLocation());
   if (family == OsFamily.UNRECOGNIZED && from.getPlatform() != null) {
     family = parseOsFamilyOrUnrecognized(from.getPlatform());
   }
   return family;
  }
}
origin: apache/jclouds

  /** 
  * First treats windows as a special case: check if platform==windows.
  * Then tries matching based on the image name.
  * And then falls back to checking other types of platform.
  */
  private OsFamily parseOsFamily(org.jclouds.ec2.domain.Image from) {
   if (from.getPlatform() != null && from.getPlatform().equalsIgnoreCase("windows")) {
     return OsFamily.WINDOWS;
   }
   
   OsFamily family = parseOsFamilyOrUnrecognized(from.getImageLocation());
   if (family == OsFamily.UNRECOGNIZED && from.getPlatform() != null) {
     family = parseOsFamilyOrUnrecognized(from.getPlatform());
   }
   return family;
  }
}
origin: org.jclouds.api/ec2

  /** 
  * First treats windows as a special case: check if platform==windows.
  * Then tries matching based on the image name.
  * And then falls back to checking other types of platform.
  */
  private OsFamily parseOsFamily(org.jclouds.ec2.domain.Image from) {
   if (from.getPlatform() != null && from.getPlatform().equalsIgnoreCase("windows")) {
     return OsFamily.WINDOWS;
   }
   
   OsFamily family = parseOsFamilyOrUnrecognized(from.getImageLocation());
   if (family == OsFamily.UNRECOGNIZED && from.getPlatform() != null) {
     family = parseOsFamilyOrUnrecognized(from.getPlatform());
   }
   return family;
  }
}
origin: org.apache.jclouds.api/ec2

  /** 
  * First treats windows as a special case: check if platform==windows.
  * Then tries matching based on the image name.
  * And then falls back to checking other types of platform.
  */
  private OsFamily parseOsFamily(org.jclouds.ec2.domain.Image from) {
   if (from.getPlatform() != null && from.getPlatform().equalsIgnoreCase("windows")) {
     return OsFamily.WINDOWS;
   }
   
   OsFamily family = parseOsFamilyOrUnrecognized(from.getImageLocation());
   if (family == OsFamily.UNRECOGNIZED && from.getPlatform() != null) {
     family = parseOsFamilyOrUnrecognized(from.getPlatform());
   }
   return family;
  }
}
org.jclouds.ec2.domainImagegetPlatform

Javadoc

The operating platform of the instance.

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
  • getRootDeviceType
  • getArchitecture
    The architecture of the image (i386 or x86_64).
  • getHypervisor
  • getArchitecture,
  • getHypervisor,
  • getImageOwnerId,
  • getVirtualizationType,
  • getEbsBlockDevices,
  • getKernelId,
  • getRamdiskId,
  • getRootDeviceName,
  • getTags

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Github Copilot alternatives
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