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,NodeMetadata>

@Singleton
public class ServerToNodeMetadata
extends Object
implements com.google.common.base.Function<Server,NodeMetadata>

Author:
Adrian Cole

Field Summary
protected  Map<String,Credentials> credentialStore
           
protected  com.google.common.base.Supplier<Set<? extends Hardware>> hardwares
           
protected  com.google.common.base.Supplier<Set<? extends Image>> images
           
protected  com.google.common.base.Supplier<Location> location
           
protected  Logger logger
           
protected  Map<ServerStatus,NodeState> serverToNodeState
           
 
Method Summary
 NodeMetadata apply(Server from)
           
protected  Hardware parseHardware(Server from)
           
protected  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 Logger logger

location

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

credentialStore

protected final Map<String,Credentials> credentialStore

serverToNodeState

protected final Map<ServerStatus,NodeState> serverToNodeState

images

protected final com.google.common.base.Supplier<Set<? extends Image>> images

hardwares

protected final com.google.common.base.Supplier<Set<? extends Hardware>> hardwares
Method Detail

apply

public NodeMetadata apply(Server from)
Specified by:
apply in interface com.google.common.base.Function<Server,NodeMetadata>

parseHardware

protected Hardware parseHardware(Server from)

parseOperatingSystem

protected OperatingSystem parseOperatingSystem(Server from)


Copyright © 2009-2011 jclouds. All Rights Reserved.