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,org.jclouds.compute.domain.NodeMetadata>

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

logger

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

locations

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

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

parseHardware

protected org.jclouds.compute.domain.Hardware parseHardware(Instance from)

parseOperatingSystem

protected org.jclouds.compute.domain.OperatingSystem parseOperatingSystem(Instance from)

parseLocation

protected org.jclouds.domain.Location parseLocation(Instance from)

apply

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


Copyright © 2009-2012 jclouds. All Rights Reserved.