org.jclouds.openstack.nova.v2_0.compute.predicates
Class GetImageWhenImageInZoneHasActiveStatusPredicateWithResult

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.compute.predicates.GetImageWhenImageInZoneHasActiveStatusPredicateWithResult
All Implemented Interfaces:
com.google.common.base.Predicate<ZoneAndId>, PredicateWithResult<ZoneAndId,Image>

public final class GetImageWhenImageInZoneHasActiveStatusPredicateWithResult
extends Object
implements PredicateWithResult<ZoneAndId,Image>

Author:
David Alves

Field Summary
protected  Logger logger
           
 
Constructor Summary
GetImageWhenImageInZoneHasActiveStatusPredicateWithResult(com.google.common.base.Function<ImageInZone,Image> imageInZoneToImage, NovaApi api)
           
 
Method Summary
 boolean apply(ZoneAndId input)
           
 Image findImage(ZoneAndId zoneAndId)
           
 Throwable getLastFailure()
           
 Image getResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger
Constructor Detail

GetImageWhenImageInZoneHasActiveStatusPredicateWithResult

@Inject
public GetImageWhenImageInZoneHasActiveStatusPredicateWithResult(com.google.common.base.Function<ImageInZone,Image> imageInZoneToImage,
                                                                        NovaApi api)
Method Detail

apply

public boolean apply(ZoneAndId input)
Specified by:
apply in interface com.google.common.base.Predicate<ZoneAndId>

getResult

public Image getResult()
Specified by:
getResult in interface PredicateWithResult<ZoneAndId,Image>

getLastFailure

public Throwable getLastFailure()
Specified by:
getLastFailure in interface PredicateWithResult<ZoneAndId,Image>

findImage

public Image findImage(ZoneAndId zoneAndId)


Copyright © 2009-2012 jclouds. All Rights Reserved.