@Singleton public class ProductItemToImage extends Object implements com.google.common.base.Function<ProductItem,org.jclouds.compute.domain.Image>
| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.logging.Logger |
logger |
| Constructor and Description |
|---|
ProductItemToImage() |
| Modifier and Type | Method and Description |
|---|---|
org.jclouds.compute.domain.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,org.jclouds.compute.domain.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
|
public org.jclouds.compute.domain.Image apply(ProductItem productItem)
apply in interface com.google.common.base.Function<ProductItem,org.jclouds.compute.domain.Image>public static com.google.common.base.Function<String,org.jclouds.compute.domain.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-2014 The Apache Software Foundation. All Rights Reserved.