org.jclouds.rimuhosting.miro.compute.functions
Class ServerToNodeMetadata

java.lang.Object
  extended by org.jclouds.rimuhosting.miro.compute.functions.ServerToNodeMetadata
All Implemented Interfaces:
com.google.common.base.Function<Server,NodeMetadata>

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

Author:
Adrian Cole

Field Summary
protected  Map<String,Credentials> credentialStore
           
protected  com.google.common.base.Function<Server,Iterable<String>> getPublicAddresses
           
protected  com.google.common.base.Supplier<Set<? extends Image>> images
           
protected  com.google.common.base.Supplier<Set<? extends Location>> locations
           
protected  Logger logger
           
protected  Map<RunningState,NodeState> runningStateToNodeState
           
 
Method Summary
 NodeMetadata apply(Server from)
           
protected  OperatingSystem parseOperatingSystem(Server from, Location location)
           
 
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

credentialStore

protected final Map<String,Credentials> credentialStore

locations

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

getPublicAddresses

protected final com.google.common.base.Function<Server,Iterable<String>> getPublicAddresses

runningStateToNodeState

protected final Map<RunningState,NodeState> runningStateToNodeState

images

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

apply

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

parseOperatingSystem

protected OperatingSystem parseOperatingSystem(Server from,
                                               Location location)


Copyright © 2009-2011 jclouds. All Rights Reserved.