@Singleton public class ProductItemToImage extends Object implements com.google.common.base.Function<ProductItem,Image>
Constructor and Description |
---|
ProductItemToImage() |
Modifier and Type | Method and Description |
---|---|
Image |
apply(ProductItem productItem) |
static com.google.common.base.Function<ProductItem,String> |
imageId()
Generates an id for an Image.
|
static com.google.common.base.Function<String,Integer> |
osBits()
Parses the item description to determine the number of OS bits
Expects the number to be in parenthesis and to contain the word "bit".
|
static com.google.common.base.Function<String,OsFamily> |
osFamily()
Parses the item description to determine the OSFamily
|
static com.google.common.base.Function<String,String> |
osVersion()
Parses the item description to determine the os version
|
@Named(value="jclouds.compute") protected Logger logger
public Image apply(ProductItem productItem)
apply
in interface com.google.common.base.Function<ProductItem,Image>
public static com.google.common.base.Function<String,OsFamily> osFamily()
public static com.google.common.base.Function<String,String> osVersion()
public static com.google.common.base.Function<String,Integer> osBits()
public static com.google.common.base.Function<ProductItem,String> imageId()
Copyright © 2009-2013 jclouds. All Rights Reserved.