org.jclouds.openstack.nova.v2_0.compute.functions
Class ImageInZoneToImage

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.compute.functions.ImageInZoneToImage
All Implemented Interfaces:
com.google.common.base.Function<ImageInZone,Image>

public class ImageInZoneToImage
extends Object
implements com.google.common.base.Function<ImageInZone,Image>

A function for transforming a nova-specific Image into a generic Image object.

Author:
Matt Stephenson

Constructor Summary
ImageInZoneToImage(Map<Image.Status,Image.Status> toPortableImageStatus, com.google.common.base.Function<Image,OperatingSystem> imageToOs, com.google.common.base.Supplier<Map<String,Location>> locationIndex)
           
 
Method Summary
 Image apply(ImageInZone imageInZone)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

ImageInZoneToImage

@Inject
public ImageInZoneToImage(Map<Image.Status,Image.Status> toPortableImageStatus,
                                 com.google.common.base.Function<Image,OperatingSystem> imageToOs,
                                 com.google.common.base.Supplier<Map<String,Location>> locationIndex)
Method Detail

apply

public Image apply(ImageInZone imageInZone)
Specified by:
apply in interface com.google.common.base.Function<ImageInZone,Image>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.