public class Machines
extends java.lang.Object
Constructor and Description |
---|
Machines() |
Modifier and Type | Method and Description |
---|---|
static Maybe<java.lang.String> |
findSubnetHostname(Entity entity) |
static Maybe<java.lang.String> |
findSubnetHostname(java.lang.Iterable<? extends Location> ll) |
static Maybe<java.lang.String> |
findSubnetIp(Entity entity) |
static Maybe<java.lang.String> |
findSubnetIp(java.lang.Iterable<? extends Location> ll) |
static Maybe<java.lang.String> |
findSubnetOrPrivateIp(Entity entity) |
static Maybe<java.lang.String> |
findSubnetOrPublicHostname(Entity entity) |
static <T> Maybe<T> |
findUniqueElement(java.lang.Iterable<?> items,
java.lang.Class<T> type) |
static Maybe<MachineLocation> |
findUniqueMachineLocation(java.lang.Iterable<? extends Location> locations) |
static <T extends MachineLocation> |
findUniqueMachineLocation(java.lang.Iterable<? extends Location> locations,
java.lang.Class<T> clazz) |
static Maybe<java.lang.String> |
getSubnetHostname(Location where) |
static Maybe<java.lang.String> |
getSubnetIp(Location where) |
static boolean |
warnIfLocalhost(java.util.Collection<? extends Location> locations,
java.lang.String message)
returns whether it is localhost (and has warned)
|
@Nonnull public static <T> Maybe<T> findUniqueElement(java.lang.Iterable<?> items, java.lang.Class<T> type)
public static Maybe<MachineLocation> findUniqueMachineLocation(java.lang.Iterable<? extends Location> locations)
public static <T extends MachineLocation> Maybe<T> findUniqueMachineLocation(java.lang.Iterable<? extends Location> locations, java.lang.Class<T> clazz)
public static Maybe<java.lang.String> findSubnetHostname(java.lang.Iterable<? extends Location> ll)
public static Maybe<java.lang.String> findSubnetOrPublicHostname(Entity entity)
public static Maybe<java.lang.String> findSubnetIp(java.lang.Iterable<? extends Location> ll)
public static boolean warnIfLocalhost(java.util.Collection<? extends Location> locations, java.lang.String message)