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 Maybe<SshMachineLocation> |
findUniqueSshMachineLocation(java.lang.Iterable<? extends Location> locations) |
static Maybe<WinRmMachineLocation> |
findUniqueWinRmMachineLocation(java.lang.Iterable<? extends Location> locations) |
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)
|
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 Maybe<SshMachineLocation> findUniqueSshMachineLocation(java.lang.Iterable<? extends Location> locations)
public static Maybe<WinRmMachineLocation> findUniqueWinRmMachineLocation(java.lang.Iterable<? extends Location> locations)
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)