public class ServerInZoneToNodeMetadata extends Object implements com.google.common.base.Function<ServerInZone,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  | 
static com.google.common.base.Predicate<String> | 
isInet4Address  | 
protected com.google.common.base.Supplier<Map<String,Location>> | 
locationIndex  | 
protected Logger | 
logger  | 
protected GroupNamingConvention | 
nodeNamingConvention  | 
protected Map<Server.Status,NodeMetadata.Status> | 
toPortableNodeStatus  | 
| Constructor and Description | 
|---|
ServerInZoneToNodeMetadata(Map<Server.Status,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(ServerInZone serverInZone)  | 
protected Hardware | 
findHardwareForServerOrNull(ServerInZone serverInZone)  | 
<T extends ComputeMetadata>  | 
findObjectOfTypeForServerOrNull(Set<? extends T> supply,
                               String type,
                               String objectId,
                               ZoneAndId serverInZone)  | 
protected OperatingSystem | 
findOperatingSystemForServerOrNull(ServerInZone serverInZone)  | 
@Named(value="jclouds.compute") protected Logger logger
protected Map<Server.Status,NodeMetadata.Status> toPortableNodeStatus
protected final GroupNamingConvention nodeNamingConvention
public static final com.google.common.base.Predicate<String> isInet4Address
@Inject public ServerInZoneToNodeMetadata(Map<Server.Status,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(ServerInZone serverInZone)
apply in interface com.google.common.base.Function<ServerInZone,NodeMetadata>protected Hardware findHardwareForServerOrNull(ServerInZone serverInZone)
protected OperatingSystem findOperatingSystemForServerOrNull(ServerInZone serverInZone)
public <T extends ComputeMetadata> T findObjectOfTypeForServerOrNull(Set<? extends T> supply, String type, String objectId, ZoneAndId serverInZone)
Copyright © 2009-2013 jclouds. All Rights Reserved.