@Override public Image getImage(String id) { return find(listImages(), ImagePredicates.idEquals(id), null); }
public EC2HardwareBuilder supportsImageIds(Iterable<String> ids) { this.imageIds = idIn(ids); return this; }
/** * evaluates true if the Image has the specified root device type * * @param rootDeviceType * rootDeviceType of the images * @return predicate */ public static Predicate<Image> rootDeviceType(final RootDeviceType rootDeviceType) { checkNotNull(rootDeviceType, "rootDeviceType must be defined"); return ImagePredicates.userMetadataContains("rootDeviceType", rootDeviceType.value()); }
/** * evaluates true if the Image has the specified root device type * * @param rootDeviceType * rootDeviceType of the images * @return predicate */ public static Predicate<Image> rootDeviceType(final RootDeviceType rootDeviceType) { checkNotNull(rootDeviceType, "rootDeviceType must be defined"); return ImagePredicates.userMetadataContains("rootDeviceType", rootDeviceType.value()); }
@Override public Image getImage(String id) { return find(listImages(), ImagePredicates.idEquals(id), null); }
public EC2HardwareBuilder supportsImageIds(Iterable<String> ids) { this.imageIds = idIn(ids); return this; }
/** * evaluates true if the Image has the specified root device type * * @param rootDeviceType * rootDeviceType of the images * @return predicate */ public static Predicate<Image> rootDeviceType(final RootDeviceType rootDeviceType) { checkNotNull(rootDeviceType, "rootDeviceType must be defined"); return ImagePredicates.userMetadataContains("rootDeviceType", rootDeviceType.value()); }
@Override public Image getImage(String id) { return find(listImages(), ImagePredicates.idEquals(id), null); }
public EC2HardwareBuilder supportsImageIds(Iterable<String> ids) { this.imageIds = idIn(ids); return this; }
/** * evaluates true if the Image has the specified root device type * * @param rootDeviceType * rootDeviceType of the images * @return predicate */ public static Predicate<Image> rootDeviceType(final RootDeviceType rootDeviceType) { checkNotNull(rootDeviceType, "rootDeviceType must be defined"); return ImagePredicates.userMetadataContains("rootDeviceType", rootDeviceType.value()); }
@Override public Image getImage(String id) { return find(listImages(), ImagePredicates.idEquals(id), null); }
public EC2HardwareBuilder supportsImageIds(Iterable<String> ids) { this.imageIds = idIn(ids); return this; }
/** * evaluates true if the Image has the specified root device type * * @param rootDeviceType * rootDeviceType of the images * @return predicate */ public static Predicate<Image> rootDeviceType(final RootDeviceType rootDeviceType) { checkNotNull(rootDeviceType, "rootDeviceType must be defined"); return ImagePredicates.userMetadataContains("rootDeviceType", rootDeviceType.value()); }
private Image loadImageWithId(Iterable<? extends Image> images) { Optional<? extends Image> image = tryFind(images, ImagePredicates.idEquals(imageId)); if (!image.isPresent()) { image = this.images.get(imageId); // Load the image from the cache, and refresh if missing if (!image.isPresent()) { throw throwNoSuchElementExceptionAfterLoggingImageIds(format("imageId(%s) not found", imageId), images); } } fromImage(image.get()); return image.get(); }
public EC2HardwareBuilder supportsImageIds(Iterable<String> ids) { this.imageIds = idIn(ids); return this; }