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
FieldsModifier and TypeFieldDescriptionprotected final Map<String, Credentials> protected final com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName, ? extends Image>> protected final Map<InstanceState, NodeMetadata.Status> protected Loggerprotected final GroupNamingConvention.Factory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRunningInstanceToNodeMetadata(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
Modifier and TypeMethodDescriptionprotected voidaddCredentialsForInstance(NodeMetadataBuilder builder, RunningInstance instance) apply(RunningInstance instance) protected HardwareparseHardware(RunningInstance instance) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
logger
-
locations
-
hardware
-
imageMap
protected final com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> imageMap -
credentialStore
-
instanceToNodeStatus
-
namingConvention
-
-
Constructor Details
-
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 Details
-
apply
- Specified by:
applyin interfacecom.google.common.base.Function<RunningInstance,NodeMetadata> - Specified by:
applyin interfaceFunction<RunningInstance,NodeMetadata>
-
addCredentialsForInstance
-
parseHardware
-