org.jclouds.joyent.cloudapi.v6_5.compute.functions
Class MachineInDatacenterToNodeMetadata
java.lang.Object
org.jclouds.joyent.cloudapi.v6_5.compute.functions.MachineInDatacenterToNodeMetadata
- All Implemented Interfaces:
- com.google.common.base.Function<MachineInDatacenter,org.jclouds.compute.domain.NodeMetadata>
public class MachineInDatacenterToNodeMetadata
- extends Object
- implements com.google.common.base.Function<MachineInDatacenter,org.jclouds.compute.domain.NodeMetadata>
A function for transforming a cloudApi-specific Machine into a generic
NodeMetadata object.
- Author:
- Adrian Cole
|
Field Summary |
protected com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> |
hardwares
|
protected com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> |
images
|
protected com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> |
locationIndex
|
protected org.jclouds.logging.Logger |
logger
|
protected org.jclouds.compute.functions.GroupNamingConvention |
nodeNamingConvention
|
protected Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> |
toPortableNodeStatus
|
|
Constructor Summary |
MachineInDatacenterToNodeMetadata(Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus,
com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> locationIndex,
com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> images,
com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> hardwares,
org.jclouds.compute.functions.GroupNamingConvention.Factory namingConvention)
|
| 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 |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
toPortableNodeStatus
protected Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus
locationIndex
protected final com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> locationIndex
images
protected final com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> images
hardwares
protected final com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> hardwares
nodeNamingConvention
protected final org.jclouds.compute.functions.GroupNamingConvention nodeNamingConvention
MachineInDatacenterToNodeMetadata
@Inject
public MachineInDatacenterToNodeMetadata(Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus,
com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> locationIndex,
com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> images,
com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> hardwares,
org.jclouds.compute.functions.GroupNamingConvention.Factory namingConvention)
apply
public org.jclouds.compute.domain.NodeMetadata apply(MachineInDatacenter machineInDatacenter)
- Specified by:
apply in interface com.google.common.base.Function<MachineInDatacenter,org.jclouds.compute.domain.NodeMetadata>
findHardwareForMachineOrNull
protected org.jclouds.compute.domain.Hardware findHardwareForMachineOrNull(MachineInDatacenter machineInDatacenter)
findOperatingSystemForMachineOrNull
protected org.jclouds.compute.domain.OperatingSystem findOperatingSystemForMachineOrNull(MachineInDatacenter machineInDatacenter)
findObjectOfTypeForMachineOrNull
public <T extends org.jclouds.compute.domain.ComputeMetadata> T findObjectOfTypeForMachineOrNull(Set<? extends T> supply,
String type,
String objectId,
DatacenterAndId machineInDatacenter)
Copyright © 2009-2012 jclouds. All Rights Reserved.