@Beta
public class BrooklynImageChooser
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
BrooklynImageChooser.ImageChooserFromOrdering |
static class |
BrooklynImageChooser.OrderingScoredWithoutDefaults |
static class |
BrooklynImageChooser.OrderingWithDefaults |
Constructor and Description |
---|
BrooklynImageChooser() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
blackListedImageIds() |
com.google.common.base.Function<java.lang.Iterable<? extends org.jclouds.compute.domain.Image>,org.jclouds.compute.domain.Image> |
chooser() |
BrooklynImageChooser |
clone() |
BrooklynImageChooser |
cloneFor(org.jclouds.compute.ComputeService service) |
static <T> T |
cloneFor(T item,
org.jclouds.compute.ComputeService service)
Attempts to clone the given item for use with the given
ComputeService , if
the item is ComputeServiceAwareChooser ; otherwise it returns the item unchanged |
static com.google.common.base.Function<java.lang.Iterable<? extends org.jclouds.compute.domain.Image>,org.jclouds.compute.domain.Image> |
imageChooserFromOrdering(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> ordering) |
static com.google.common.base.Function<java.lang.Iterable<? extends org.jclouds.compute.domain.Image>,org.jclouds.compute.domain.Image> |
imageChooserFromOrderingDeprecated(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> ordering)
Deprecated.
since 0.7.0 kept in case persisted
|
com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> |
ordering() |
com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> |
orderingScoredWithoutDefaults() |
com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> |
orderingScoredWithoutDefaultsDeprecated()
Deprecated.
since 0.7.0 kept in case persisted
|
static com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> |
orderingWithDefaults(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> primaryOrdering) |
static com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> |
orderingWithDefaultsDeprecated(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> primaryOrdering)
Deprecated.
since 0.7.0 kept in case persisted
|
double |
punishmentForOldOsVersions(org.jclouds.compute.domain.Image img,
org.jclouds.compute.domain.OsFamily family,
double minVersion) |
double |
score(org.jclouds.compute.domain.Image img) |
java.util.List<java.lang.String> |
whilelistedImageIds() |
public double punishmentForOldOsVersions(org.jclouds.compute.domain.Image img, org.jclouds.compute.domain.OsFamily family, double minVersion)
public java.util.List<java.lang.String> blackListedImageIds()
public java.util.List<java.lang.String> whilelistedImageIds()
public double score(org.jclouds.compute.domain.Image img)
public BrooklynImageChooser clone()
clone
in class java.lang.Object
public BrooklynImageChooser cloneFor(org.jclouds.compute.ComputeService service)
public com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> orderingScoredWithoutDefaults()
@Deprecated public com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> orderingScoredWithoutDefaultsDeprecated()
public static com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> orderingWithDefaults(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> primaryOrdering)
@Deprecated public static com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> orderingWithDefaultsDeprecated(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> primaryOrdering)
public static com.google.common.base.Function<java.lang.Iterable<? extends org.jclouds.compute.domain.Image>,org.jclouds.compute.domain.Image> imageChooserFromOrdering(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> ordering)
@Deprecated public static com.google.common.base.Function<java.lang.Iterable<? extends org.jclouds.compute.domain.Image>,org.jclouds.compute.domain.Image> imageChooserFromOrderingDeprecated(com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> ordering)
public static <T> T cloneFor(T item, org.jclouds.compute.ComputeService service)
ComputeService
, if
the item is ComputeServiceAwareChooser
; otherwise it returns the item unchangedpublic com.google.common.collect.Ordering<org.jclouds.compute.domain.Image> ordering()
public com.google.common.base.Function<java.lang.Iterable<? extends org.jclouds.compute.domain.Image>,org.jclouds.compute.domain.Image> chooser()