public class ServerInRegionToNodeMetadata extends Object implements com.google.common.base.Function<ServerInRegion,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 Hardware>> |
hardwares |
protected com.google.common.base.Supplier<Set<? extends Image>> |
images |
static com.google.common.base.Predicate<Address> |
isFloatingAddress |
static com.google.common.base.Predicate<String> |
isInet4Address |
static com.google.common.base.Predicate<Address> |
isPrivateAddress |
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 |
---|
ServerInRegionToNodeMetadata(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(ServerInRegion serverInRegion) |
protected Hardware |
findHardwareForServerOrNull(ServerInRegion serverInRegion) |
<T extends ComputeMetadata> |
findObjectOfTypeForServerOrNull(Set<? extends T> supply,
String type,
String objectId,
RegionAndId serverInRegion) |
protected OperatingSystem |
findOperatingSystemForServerOrNull(ServerInRegion serverInRegion) |
@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<Address> isFloatingAddress
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,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(ServerInRegion serverInRegion)
apply
in interface com.google.common.base.Function<ServerInRegion,NodeMetadata>
protected Hardware findHardwareForServerOrNull(ServerInRegion serverInRegion)
protected OperatingSystem findOperatingSystemForServerOrNull(ServerInRegion serverInRegion)
public <T extends ComputeMetadata> T findObjectOfTypeForServerOrNull(Set<? extends T> supply, String type, String objectId, RegionAndId serverInRegion)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.