Class DropletToNodeMetadata
- java.lang.Object
-
- org.jclouds.digitalocean2.compute.functions.DropletToNodeMetadata
-
- All Implemented Interfaces:
com.google.common.base.Function<Droplet,NodeMetadata>
,Function<Droplet,NodeMetadata>
@Singleton public class DropletToNodeMetadata extends Object implements com.google.common.base.Function<Droplet,NodeMetadata>
Transforms anDroplet
to the jclouds portable model.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeMetadata
apply(Droplet input)
protected com.google.common.base.Optional<? extends Image>
findImage(Image image, String region)
protected Hardware
getHardware(String slug)
protected Location
getLocation(Region region)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
-
Method Detail
-
apply
public NodeMetadata apply(Droplet input)
- Specified by:
apply
in interfacecom.google.common.base.Function<Droplet,NodeMetadata>
- Specified by:
apply
in interfaceFunction<Droplet,NodeMetadata>
-
findImage
protected com.google.common.base.Optional<? extends Image> findImage(Image image, String region)
-
-