public class MachineInDatacenterToNodeMetadata extends Object implements com.google.common.base.Function<MachineInDatacenter,NodeMetadata>
| Modifier and Type | Field and Description | 
|---|---|
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<Map<String,Location>> | 
locationIndex  | 
protected Logger | 
logger  | 
protected GroupNamingConvention | 
nodeNamingConvention  | 
protected Map<Machine.State,NodeMetadata.Status> | 
toPortableNodeStatus  | 
| Constructor and Description | 
|---|
MachineInDatacenterToNodeMetadata(Map<Machine.State,NodeMetadata.Status> toPortableNodeStatus,
                                 com.google.common.base.Supplier<Map<String,Location>> locationIndex,
                                 com.google.common.base.Supplier<Set<? extends Image>> images,
                                 com.google.common.base.Supplier<Set<? extends Hardware>> hardwares,
                                 GroupNamingConvention.Factory namingConvention)  | 
| Modifier and Type | Method and Description | 
|---|---|
NodeMetadata | 
apply(MachineInDatacenter machineInDatacenter)  | 
protected Hardware | 
findHardwareForMachineOrNull(MachineInDatacenter machineInDatacenter)  | 
<T extends ComputeMetadata>  | 
findObjectOfTypeForMachineOrNull(Set<? extends T> supply,
                                String type,
                                String objectId,
                                DatacenterAndId machineInDatacenter)  | 
protected OperatingSystem | 
findOperatingSystemForMachineOrNull(MachineInDatacenter machineInDatacenter)  | 
@Named(value="jclouds.compute") protected Logger logger
protected Map<Machine.State,NodeMetadata.Status> toPortableNodeStatus
protected final GroupNamingConvention nodeNamingConvention
@Inject public MachineInDatacenterToNodeMetadata(Map<Machine.State,NodeMetadata.Status> toPortableNodeStatus, com.google.common.base.Supplier<Map<String,Location>> locationIndex, com.google.common.base.Supplier<Set<? extends Image>> images, com.google.common.base.Supplier<Set<? extends Hardware>> hardwares, GroupNamingConvention.Factory namingConvention)
public NodeMetadata apply(MachineInDatacenter machineInDatacenter)
apply in interface com.google.common.base.Function<MachineInDatacenter,NodeMetadata>protected Hardware findHardwareForMachineOrNull(MachineInDatacenter machineInDatacenter)
protected OperatingSystem findOperatingSystemForMachineOrNull(MachineInDatacenter machineInDatacenter)
public <T extends ComputeMetadata> T findObjectOfTypeForMachineOrNull(Set<? extends T> supply, String type, String objectId, DatacenterAndId machineInDatacenter)
Copyright © 2009-2013 jclouds. All Rights Reserved.