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

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

Author:
Adrian Cole

Nested Class Summary
static class ServerDetailsToNodeMetadata.FindLocationForServerDetails
           
 
Field Summary
protected  ServerDetailsToNodeMetadata.FindLocationForServerDetails findLocationForServerDetails
           
protected  com.google.common.base.Supplier<Set<? extends Image>> images
           
protected  Logger logger
           
static Map<Server.State,NodeState> serverStateToNodeState
           
 
Method Summary
 NodeMetadata apply(ServerDetails from)
           
protected  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 Logger logger

serverStateToNodeState

public static final Map<Server.State,NodeState> serverStateToNodeState

images

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

findLocationForServerDetails

protected final ServerDetailsToNodeMetadata.FindLocationForServerDetails findLocationForServerDetails
Method Detail

apply

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

parseOperatingSystem

protected OperatingSystem parseOperatingSystem(ServerDetails from)


Copyright © 2009-2012 jclouds. All Rights Reserved.