org.jclouds.elasticstack.compute.functions
Class ServerInfoToNodeMetadata.GetImageIdFromServer

java.lang.Object
  extended by org.jclouds.elasticstack.compute.functions.ServerInfoToNodeMetadata.GetImageIdFromServer
All Implemented Interfaces:
com.google.common.base.Function<Server,String>
Enclosing class:
ServerInfoToNodeMetadata

@Singleton
public static class ServerInfoToNodeMetadata.GetImageIdFromServer
extends Object
implements com.google.common.base.Function<Server,String>

When we create the boot drive of the server, by convention we set the name to the image it came from.

Author:
Adrian Cole

Constructor Summary
ServerInfoToNodeMetadata.GetImageIdFromServer(Map<String,DriveInfo> cache)
           
 
Method Summary
 String apply(Server 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
 

Constructor Detail

ServerInfoToNodeMetadata.GetImageIdFromServer

@Inject
public ServerInfoToNodeMetadata.GetImageIdFromServer(Map<String,DriveInfo> cache)
Method Detail

apply

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


Copyright © 2009-2011 jclouds. All Rights Reserved.