Class RunningInstanceToNodeMetadata
- java.lang.Object
-
- org.jclouds.ec2.compute.functions.RunningInstanceToNodeMetadata
-
- All Implemented Interfaces:
com.google.common.base.Function<RunningInstance,NodeMetadata>
,Function<RunningInstance,NodeMetadata>
- Direct Known Subclasses:
AWSRunningInstanceToNodeMetadata
@Singleton public class RunningInstanceToNodeMetadata extends Object implements com.google.common.base.Function<RunningInstance,NodeMetadata>
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Credentials>
credentialStore
protected com.google.common.base.Supplier<Set<? extends Hardware>>
hardware
protected com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>>
imageMap
protected Map<InstanceState,NodeMetadata.Status>
instanceToNodeStatus
protected com.google.common.base.Supplier<Set<? extends Location>>
locations
protected Logger
logger
protected GroupNamingConvention.Factory
namingConvention
-
Constructor Summary
Constructors Modifier Constructor Description protected
RunningInstanceToNodeMetadata(Map<InstanceState,NodeMetadata.Status> instanceToNodeStatus, Map<String,Credentials> credentialStore, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap, com.google.common.base.Supplier<Set<? extends Location>> locations, com.google.common.base.Supplier<Set<? extends Hardware>> hardware, GroupNamingConvention.Factory namingConvention)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCredentialsForInstance(NodeMetadataBuilder builder, RunningInstance instance)
NodeMetadata
apply(RunningInstance instance)
protected Hardware
parseHardware(RunningInstance instance)
-
-
-
Field Detail
-
logger
protected Logger logger
-
imageMap
protected final com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap
-
credentialStore
protected final Map<String,Credentials> credentialStore
-
instanceToNodeStatus
protected final Map<InstanceState,NodeMetadata.Status> instanceToNodeStatus
-
namingConvention
protected final GroupNamingConvention.Factory namingConvention
-
-
Constructor Detail
-
RunningInstanceToNodeMetadata
@Inject protected RunningInstanceToNodeMetadata(Map<InstanceState,NodeMetadata.Status> instanceToNodeStatus, Map<String,Credentials> credentialStore, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap, com.google.common.base.Supplier<Set<? extends Location>> locations, com.google.common.base.Supplier<Set<? extends Hardware>> hardware, GroupNamingConvention.Factory namingConvention)
-
-
Method Detail
-
apply
public NodeMetadata apply(RunningInstance instance)
- Specified by:
apply
in interfacecom.google.common.base.Function<RunningInstance,NodeMetadata>
- Specified by:
apply
in interfaceFunction<RunningInstance,NodeMetadata>
-
addCredentialsForInstance
protected void addCredentialsForInstance(NodeMetadataBuilder builder, RunningInstance instance)
-
parseHardware
protected Hardware parseHardware(RunningInstance instance)
-
-