org.jclouds.openstack.nova.compute.functions
Class ServerToNodeMetadata

java.lang.Object
  extended by org.jclouds.openstack.nova.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  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  Image parseImage(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

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)

parseImage

protected Image parseImage(Server from)


Copyright © 2009-2012 jclouds. All Rights Reserved.