org.jclouds.digitalocean.compute.functions
Class DropletToNodeMetadata
java.lang.Object
org.jclouds.digitalocean.compute.functions.DropletToNodeMetadata
- All Implemented Interfaces:
- com.google.common.base.Function<Droplet,org.jclouds.compute.domain.NodeMetadata>
@Singleton
public class DropletToNodeMetadata
- extends Object
- implements com.google.common.base.Function<Droplet,org.jclouds.compute.domain.NodeMetadata>
Transforms an Droplet to the jclouds portable model.
- Author:
- Sergi Castro, Ignasi Barrera
|
Field Summary |
protected org.jclouds.logging.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
equals |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
apply
public org.jclouds.compute.domain.NodeMetadata apply(Droplet input)
- Specified by:
apply in interface com.google.common.base.Function<Droplet,org.jclouds.compute.domain.NodeMetadata>
findImage
protected com.google.common.base.Optional<? extends org.jclouds.compute.domain.Image> findImage(Integer id)
getHardware
protected org.jclouds.compute.domain.Hardware getHardware(Integer id)
getLocation
protected org.jclouds.domain.Location getLocation(Integer id)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.