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,org.jclouds.compute.domain.Image>

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

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


Constructor Summary
ImageInZoneToImage(Map<Image.Status,org.jclouds.compute.domain.Image.Status> toPortableImageStatus, com.google.common.base.Function<Image,org.jclouds.compute.domain.OperatingSystem> imageToOs, com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> locationIndex)
           
 
Method Summary
 org.jclouds.compute.domain.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,org.jclouds.compute.domain.Image.Status> toPortableImageStatus,
                                 com.google.common.base.Function<Image,org.jclouds.compute.domain.OperatingSystem> imageToOs,
                                 com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> locationIndex)
Method Detail

apply

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.