org.jclouds.elasticstack.compute.functions
Class ServerInfoToNodeMetadata

java.lang.Object
  extended by org.jclouds.elasticstack.compute.functions.ServerInfoToNodeMetadata
All Implemented Interfaces:
com.google.common.base.Function<ServerInfo,NodeMetadata>

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

Author:
Adrian Cole

Nested Class Summary
static class ServerInfoToNodeMetadata.DeviceToVolume
           
static class ServerInfoToNodeMetadata.FindImageForId
           
static class ServerInfoToNodeMetadata.GetImageIdFromServer
          When we create the boot drive of the server, by convention we set the name to the image it came from.
 
Field Summary
static Map<ServerStatus,NodeState> serverStatusToNodeState
           
 
Method Summary
 NodeMetadata apply(ServerInfo 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

serverStatusToNodeState

public static final Map<ServerStatus,NodeState> serverStatusToNodeState
Method Detail

apply

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


Copyright © 2009-2012 jclouds. All Rights Reserved.