org.jclouds.slicehost.compute.functions
Class SliceToNodeMetadata

java.lang.Object
  extended by org.jclouds.slicehost.compute.functions.SliceToNodeMetadata
All Implemented Interfaces:
com.google.common.base.Function<Slice,NodeMetadata>

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

Author:
Adrian Cole

Field Summary
protected  Map<String,Credentials> credentialStore
           
protected  com.google.common.base.Supplier<Set<? extends Hardware>> hardwares
           
protected  com.google.common.base.Supplier<Set<? extends Image>> images
           
protected  com.google.common.base.Supplier<Location> location
           
protected  Logger logger
           
protected  Map<Slice.Status,NodeState> sliceToNodeState
           
 
Method Summary
 NodeMetadata apply(Slice from)
           
protected  Hardware parseHardware(Slice from)
           
protected  OperatingSystem parseOperatingSystem(Slice 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

location

protected final com.google.common.base.Supplier<Location> location

sliceToNodeState

protected final Map<Slice.Status,NodeState> sliceToNodeState

images

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

hardwares

protected final com.google.common.base.Supplier<Set<? extends Hardware>> hardwares

credentialStore

protected final Map<String,Credentials> credentialStore

logger

protected Logger logger
Method Detail

apply

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

parseHardware

protected Hardware parseHardware(Slice from)

parseOperatingSystem

protected OperatingSystem parseOperatingSystem(Slice from)


Copyright © 2009-2011 jclouds. All Rights Reserved.