- All Superinterfaces:
Comparable<Machine>,Machine
Models a machine that runs Linux specifically, adding the additional detail of which C library and distribution it uses. In future
additional information may be added here if relevant to application compatibility.
-
Field Summary
Fields inherited from interface dev.hydraulic.types.machines.Machine
LINUX_AARCH64, LINUX_AARCH64_MUSLC, LINUX_AMD64, LINUX_AMD64_MUSLC, MACOS_AARCH64, MACOS_AMD64, WINDOWS_AARCH64, WINDOWS_AMD64 -
Method Summary
Modifier and TypeMethodDescriptionWhich type of C Library (glibc or muslc) this machine uses.The reversed domain name of the primary website used by this Linux distribution project, or null if unknown/irrelevant.static LinuxMachineof(CPUArchitecture cpu) Returns an immutable object of the given CPU architecture and defaulting to glibc / no distribution domain.static LinuxMachineof(CPUArchitecture cpu, CLibrary cLibrary) Returns an immutable object holding the given values or defaults and no distributiond domain.static LinuxMachineof(CPUArchitecture cpu, CLibrary cLibrary, String distributionReverseDNSName) Returns an immutable object holding the given values.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getCLibrary
CLibrary getCLibrary()Which type of C Library (glibc or muslc) this machine uses. -
getDistributionReverseDNSName
String getDistributionReverseDNSName()The reversed domain name of the primary website used by this Linux distribution project, or null if unknown/irrelevant.Rather than try to define a custom namespace to identify Linux distributions, we simply defer to DNS and assume that all distributions published via a particular website domain are sufficiently similar to generalize over. Sub-versions are not considered here - versioning is currently not expressed by this set of types.
Examples: `com.ubuntu`, `org.getfedora`, `org.debian` etc.
-
of
Returns an immutable object holding the given values.- Parameters:
cpu- The CPU architecture, must not be null.cLibrary- The C library, must not be null.distributionReverseDNSName- No default, may be null.
-
of
Returns an immutable object holding the given values or defaults and no distributiond domain.- Parameters:
cpu- The CPU architecture, must not be null.cLibrary- The C library, must not be null.
-
of
Returns an immutable object of the given CPU architecture and defaulting to glibc / no distribution domain.- Parameters:
cpu- The CPU architecture, must not be null.
-