org.jclouds.glesys.compute.functions
Class ServerDetailsToNodeMetadata

java.lang.Object
  extended by org.jclouds.glesys.compute.functions.ServerDetailsToNodeMetadata
All Implemented Interfaces:
com.google.common.base.Function<ServerDetails,org.jclouds.compute.domain.NodeMetadata>

@Singleton
public class ServerDetailsToNodeMetadata
extends Object
implements com.google.common.base.Function<ServerDetails,org.jclouds.compute.domain.NodeMetadata>

Author:
Adrian Cole

Field Summary
protected  com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> images
           
protected  com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations
           
protected  org.jclouds.logging.Logger logger
           
protected  org.jclouds.compute.functions.GroupNamingConvention nodeNamingConvention
           
static Map<Server.State,org.jclouds.compute.domain.NodeMetadata.Status> serverStateToNodeStatus
           
 
Method Summary
 org.jclouds.compute.domain.NodeMetadata apply(ServerDetails from)
           
protected  org.jclouds.compute.domain.OperatingSystem parseOperatingSystem(ServerDetails 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

serverStateToNodeStatus

public static final Map<Server.State,org.jclouds.compute.domain.NodeMetadata.Status> serverStateToNodeStatus

images

protected final com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> images

locations

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

nodeNamingConvention

protected final org.jclouds.compute.functions.GroupNamingConvention nodeNamingConvention
Method Detail

apply

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

parseOperatingSystem

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


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.