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() |
<any> |
chooser() |
BrooklynImageChooser |
clone() |
BrooklynImageChooser |
cloneFor(org.jclouds.compute.ComputeService service) |
BrooklynImageChooser |
cloneFor(ConfigBag config) |
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 <T> T |
cloneFor(T item,
org.jclouds.compute.ComputeService service,
ConfigBag config)
Attempts to clone the given item for use with the given
ComputeService and/or the
given config, if the item is ComputeServiceAwareChooser or ConfigAwareChooser;
otherwise it returns the item unchanged. |
static <T> T |
cloneFor(T item,
ConfigBag service)
Attempts to clone the given item for use with the given
ConfigBag, if
the item is ConfigAwareChooser; otherwise it returns the item unchanged. |
static <any> |
imageChooserFromOrdering(<any> ordering) |
static <any> |
imageChooserFromOrderings(java.lang.Iterable<? extends <any>> orderings) |
<any> |
ordering() |
<any> |
orderingScoredWithoutDefaults() |
static <any> |
orderingWithDefaults(<any> primaryOrdering) |
double |
score(org.jclouds.compute.domain.Image img) |
java.lang.String |
toString() |
java.util.List<java.lang.String> |
whilelistedImageIds() |
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.Objectpublic BrooklynImageChooser cloneFor(org.jclouds.compute.ComputeService service)
public BrooklynImageChooser cloneFor(ConfigBag config)
public <any> orderingScoredWithoutDefaults()
public static <any> orderingWithDefaults(<any> primaryOrdering)
public static <any> imageChooserFromOrdering(<any> ordering)
public static <any> imageChooserFromOrderings(java.lang.Iterable<? extends <any>> orderings)
public static <T> T cloneFor(T item,
org.jclouds.compute.ComputeService service,
ConfigBag config)
ComputeService and/or the
given config, if the item is ComputeServiceAwareChooser or ConfigAwareChooser;
otherwise it returns the item unchanged.public static <T> T cloneFor(T item,
org.jclouds.compute.ComputeService service)
ComputeService, if
the item is ComputeServiceAwareChooser; otherwise it returns the item unchanged.public static <T> T cloneFor(T item,
ConfigBag service)
ConfigBag, if
the item is ConfigAwareChooser; otherwise it returns the item unchanged.public <any> ordering()
public <any> chooser()
public java.lang.String toString()
toString in class java.lang.Object