org.jclouds.deltacloud.compute.functions
Class InstanceToNodeMetadata

java.lang.Object
  extended by org.jclouds.deltacloud.compute.functions.InstanceToNodeMetadata
All Implemented Interfaces:
com.google.common.base.Function<Instance,NodeMetadata>

@Singleton
public class InstanceToNodeMetadata
extends Object
implements com.google.common.base.Function<Instance,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
           
static Map<Instance.State,NodeState> instanceToNodeState
           
protected  com.google.common.base.Supplier<Set<? extends Location>> locations
           
protected  Logger logger
           
 
Method Summary
 NodeMetadata apply(Instance from)
           
protected  Hardware parseHardware(Instance from)
           
protected  Location parseLocation(Instance from)
           
protected  OperatingSystem parseOperatingSystem(Instance 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

instanceToNodeState

public static final Map<Instance.State,NodeState> instanceToNodeState

logger

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

locations

protected final com.google.common.base.Supplier<Set<? extends Location>> locations

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

parseHardware

protected Hardware parseHardware(Instance from)

parseOperatingSystem

protected OperatingSystem parseOperatingSystem(Instance from)

parseLocation

protected Location parseLocation(Instance from)

apply

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


Copyright © 2009-2012 jclouds. All Rights Reserved.