@Immutable public class BasicMachineDetails extends java.lang.Object implements MachineDetails
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
BasicMachineDetails(HardwareDetails hardwareDetails,
OsDetails osDetails) |
Modifier and Type | Method and Description |
---|---|
static BasicMachineDetails |
forSshMachineLocationLive(SshMachineLocation location)
Creates a MachineDetails for the given location by SSHing to the machine and
running a Bash script to gather data.
|
HardwareDetails |
getHardwareDetails() |
OsDetails |
getOsDetails() |
static Task<BasicMachineDetails> |
taskForSshMachineLocation(SshMachineLocation location) |
java.lang.String |
toString() |
public BasicMachineDetails(HardwareDetails hardwareDetails, OsDetails osDetails)
@Nonnull public HardwareDetails getHardwareDetails()
getHardwareDetails
in interface MachineDetails
@Nonnull public OsDetails getOsDetails()
getOsDetails
in interface MachineDetails
public java.lang.String toString()
toString
in class java.lang.Object
public static BasicMachineDetails forSshMachineLocationLive(SshMachineLocation location)
taskForSshMachineLocation(SshMachineLocation)
instead.public static Task<BasicMachineDetails> taskForSshMachineLocation(SshMachineLocation location)