Class CorrectHypervisorForZone

  • All Implemented Interfaces:
    com.google.common.base.Function<String,​com.google.common.base.Predicate<Template>>, Function<String,​com.google.common.base.Predicate<Template>>

    @Singleton
    public class CorrectHypervisorForZone
    extends Object
    implements com.google.common.base.Function<String,​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.
    • Constructor Detail

      • CorrectHypervisorForZone

        @Inject
        public CorrectHypervisorForZone​(CloudStackApi client)
      • CorrectHypervisorForZone

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

      • apply

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