org.jclouds.cloudstack.predicates
Class CorrectHypervisorForZone

java.lang.Object
  extended by org.jclouds.cloudstack.predicates.CorrectHypervisorForZone
All Implemented Interfaces:
com.google.common.base.Function<Long,com.google.common.base.Predicate<Template>>

@Singleton
public class CorrectHypervisorForZone
extends Object
implements com.google.common.base.Function<Long,com.google.common.base.Predicate<Template>>

Templates can be present in a zone, and available, but not valid for launch as their hypervisor isn't installed.

Author:
Adrian Cole

Constructor Summary
CorrectHypervisorForZone(CloudStackClient client)
           
CorrectHypervisorForZone(com.google.common.base.Supplier<Map<Long,Set<String>>> hypervisorsSupplier)
           
 
Method Summary
 com.google.common.base.Predicate<Template> apply(Long zoneId)
           
 
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.Function
equals
 

Constructor Detail

CorrectHypervisorForZone

@Inject
public CorrectHypervisorForZone(CloudStackClient client)

CorrectHypervisorForZone

public CorrectHypervisorForZone(com.google.common.base.Supplier<Map<Long,Set<String>>> hypervisorsSupplier)
Method Detail

apply

public com.google.common.base.Predicate<Template> apply(Long zoneId)
Specified by:
apply in interface com.google.common.base.Function<Long,com.google.common.base.Predicate<Template>>


Copyright © 2009-2012 jclouds. All Rights Reserved.