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 anDropletto the jclouds portable model. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeMetadataapply(Droplet input)protected com.google.common.base.Optional<? extends Image>findImage(Image image, String region)protected HardwaregetHardware(String slug)protected LocationgetLocation(Region region) 
 - 
 
- 
- 
Field Detail
- 
logger
@Named("jclouds.compute") protected Logger logger 
 - 
 
- 
Method Detail
- 
apply
public NodeMetadata apply(Droplet input)
- Specified by:
 applyin interfacecom.google.common.base.Function<Droplet,NodeMetadata>- Specified by:
 applyin interfaceFunction<Droplet,NodeMetadata>
 
- 
findImage
protected com.google.common.base.Optional<? extends Image> findImage(Image image, String region)
 
 - 
 
 -