org.jclouds.cloudservers.compute.functions
Class ServerToNodeMetadata

java.lang.Object
  extended by 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  Map<String,org.jclouds.domain.Credentials> credentialStore
           
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
           
 
Method Summary
 org.jclouds.compute.domain.NodeMetadata apply(Server from)
           
protected  org.jclouds.compute.domain.Hardware parseHardware(Server from)
           
protected  org.jclouds.compute.domain.OperatingSystem parseOperatingSystem(Server from)
           
 
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
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger

location

protected final com.google.common.base.Supplier<org.jclouds.domain.Location> location

credentialStore

protected final Map<String,org.jclouds.domain.Credentials> credentialStore

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
Method Detail

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-2011 jclouds. All Rights Reserved.