public class ServerInRegionToNodeMetadata extends Object implements com.google.common.base.Function<ServerInRegion,org.jclouds.compute.domain.NodeMetadata>
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerInRegionToNodeMetadata.AddressToStringTransformationFunction |
| Modifier and Type | Field and Description |
|---|---|
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 |
static com.google.common.base.Predicate<String> |
isInet4Address |
static com.google.common.base.Predicate<Address> |
isPrivateAddress |
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<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status> |
toPortableNodeStatus |
| Constructor and Description |
|---|
ServerInRegionToNodeMetadata(Map<Server.Status,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) |
| Modifier and Type | Method and Description |
|---|---|
org.jclouds.compute.domain.NodeMetadata |
apply(ServerInRegion serverInRegion) |
protected org.jclouds.compute.domain.Hardware |
findHardwareForServerOrNull(ServerInRegion serverInRegion) |
<T extends org.jclouds.compute.domain.ComputeMetadata> |
findObjectOfTypeForServerOrNull(Set<? extends T> supply,
String type,
String objectId,
RegionAndId serverInRegion) |
protected org.jclouds.compute.domain.OperatingSystem |
findOperatingSystemForServerOrNull(ServerInRegion serverInRegion) |
@Named(value="jclouds.compute") protected org.jclouds.logging.Logger logger
protected Map<Server.Status,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus
protected final com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> locationIndex
protected final com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Image>> images
protected final com.google.common.base.Supplier<Set<? extends org.jclouds.compute.domain.Hardware>> hardwares
protected final org.jclouds.compute.functions.GroupNamingConvention nodeNamingConvention
public static final com.google.common.base.Predicate<Address> isPrivateAddress
public static final com.google.common.base.Predicate<String> isInet4Address
@Inject public ServerInRegionToNodeMetadata(Map<Server.Status,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)
public org.jclouds.compute.domain.NodeMetadata apply(ServerInRegion serverInRegion)
apply in interface com.google.common.base.Function<ServerInRegion,org.jclouds.compute.domain.NodeMetadata>protected org.jclouds.compute.domain.Hardware findHardwareForServerOrNull(ServerInRegion serverInRegion)
protected org.jclouds.compute.domain.OperatingSystem findOperatingSystemForServerOrNull(ServerInRegion serverInRegion)
public <T extends org.jclouds.compute.domain.ComputeMetadata> T findObjectOfTypeForServerOrNull(Set<? extends T> supply, String type, String objectId, RegionAndId serverInRegion)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.