org.jclouds.cloudservers.compute.functions
Class ServerToNodeMetadata
java.lang.Object
org.jclouds.cloudservers.compute.functions.ServerToNodeMetadata
- All Implemented Interfaces:
- com.google.common.base.Function<Server,org.jclouds.compute.domain.NodeMetadata>
@Singleton
public class ServerToNodeMetadata
- extends Object
- implements com.google.common.base.Function<Server,org.jclouds.compute.domain.NodeMetadata>
- Author:
- Adrian Cole
|
Field Summary |
protected com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> |
hardwares
|
protected com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> |
images
|
protected com.google.common.base.Supplier<org.jclouds.domain.Location> |
location
|
protected org.jclouds.logging.Logger |
logger
|
protected Map<ServerStatus,org.jclouds.compute.domain.NodeState> |
serverToNodeState
|
| 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
location
protected final com.google.common.base.Supplier<org.jclouds.domain.Location> location
serverToNodeState
protected final Map<ServerStatus,org.jclouds.compute.domain.NodeState> serverToNodeState
images
protected final com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> images
hardwares
protected final com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> hardwares
apply
public org.jclouds.compute.domain.NodeMetadata apply(Server from)
- Specified by:
apply in interface com.google.common.base.Function<Server,org.jclouds.compute.domain.NodeMetadata>
parseHardware
protected org.jclouds.compute.domain.Hardware parseHardware(Server from)
parseOperatingSystem
protected org.jclouds.compute.domain.OperatingSystem parseOperatingSystem(Server from)
Copyright © 2009-2012 jclouds. All Rights Reserved.