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

java.lang.Object
  extended by org.jclouds.cloudsigma.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

Field Summary
protected  Logger logger
           
 
Constructor Summary
ServerInfoToNodeMetadata.GetImageIdFromServer(com.google.common.cache.Cache<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
 

Field Detail

logger

protected Logger logger
Constructor Detail

ServerInfoToNodeMetadata.GetImageIdFromServer

@Inject
public ServerInfoToNodeMetadata.GetImageIdFromServer(com.google.common.cache.Cache<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.