org.jclouds.aws.ec2.compute.functions
Class AWSRunningInstanceToNodeMetadata

java.lang.Object
  extended by org.jclouds.ec2.compute.functions.RunningInstanceToNodeMetadata
      extended by org.jclouds.aws.ec2.compute.functions.AWSRunningInstanceToNodeMetadata
All Implemented Interfaces:
com.google.common.base.Function<RunningInstance,NodeMetadata>

@Singleton
public class AWSRunningInstanceToNodeMetadata
extends RunningInstanceToNodeMetadata

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.ec2.compute.functions.RunningInstanceToNodeMetadata
credentialStore, hardware, imageMap, instanceToNodeState, locations, logger
 
Constructor Summary
protected AWSRunningInstanceToNodeMetadata(Map<InstanceState,NodeState> instanceToNodeState, Map<String,Credentials> credentialStore, com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>> imageMap, com.google.common.base.Supplier<Set<? extends Location>> locations, com.google.common.base.Supplier<Set<? extends Hardware>> hardware)
           
 
Method Summary
protected  void addCredentialsForInstance(NodeMetadataBuilder builder, RunningInstance instance)
           
protected  NodeMetadataBuilder buildInstance(RunningInstance instance, NodeMetadataBuilder builder)
           
 
Methods inherited from class org.jclouds.ec2.compute.functions.RunningInstanceToNodeMetadata
apply, parseHardware
 
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

AWSRunningInstanceToNodeMetadata

@Inject
protected AWSRunningInstanceToNodeMetadata(Map<InstanceState,NodeState> instanceToNodeState,
                                                  Map<String,Credentials> credentialStore,
                                                  com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>> imageMap,
                                                  com.google.common.base.Supplier<Set<? extends Location>> locations,
                                                  com.google.common.base.Supplier<Set<? extends Hardware>> hardware)
Method Detail

addCredentialsForInstance

protected void addCredentialsForInstance(NodeMetadataBuilder builder,
                                         RunningInstance instance)
Overrides:
addCredentialsForInstance in class RunningInstanceToNodeMetadata

buildInstance

protected NodeMetadataBuilder buildInstance(RunningInstance instance,
                                            NodeMetadataBuilder builder)
Overrides:
buildInstance in class RunningInstanceToNodeMetadata


Copyright © 2009-2011 jclouds. All Rights Reserved.