@Beta public class OperatingSystem extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OperatingSystem.Builder |
Modifier and Type | Field and Description |
---|---|
protected String |
arch |
protected String |
description |
protected OsFamily |
family |
protected boolean |
is64Bit |
protected String |
name |
protected String |
version |
Modifier | Constructor and Description |
---|---|
protected |
OperatingSystem() |
|
OperatingSystem(OsFamily family,
String name,
String version,
String arch,
String description,
boolean is64Bit) |
Modifier and Type | Method and Description |
---|---|
static OperatingSystem.Builder |
builder() |
boolean |
equals(Object obj) |
String |
getArch()
architecture of the operating system; ex.
|
String |
getDescription()
description of the operating system; ex.
|
OsFamily |
getFamily()
Type of the operating system
generally, this is used to compare the means by which you use an operating system.
|
String |
getName()
name of the operating system; ex.
|
String |
getVersion()
version of the operating system; ex.
|
int |
hashCode() |
boolean |
is64Bit() |
OperatingSystem.Builder |
toBuilder() |
String |
toString() |
protected String description
protected boolean is64Bit
public static OperatingSystem.Builder builder()
@Nullable public OsFamily getFamily()
@Nullable public String getName()
Red Hat Enterprise Linux
os.name
it isn't guaranteed to match a particular value. For example,
this value could be derived from data parsed for a cloud api or the OVF CIM OSType enum value;@Nullable public String getArch()
x86_64
generally, this is used to decide whether an operating system will run certain binaries, for
example, a 64bit JDK.
os.arch
it isn't guaranteed to match a particular value. For example, this value could
be derived from data parsed for a cloud api or the OVF CIM OSType enum value;@Nullable public String getVersion()
10.0.4
generally, this is used to compare versions of the same operating system name. It should be
meaningful when sorted against, although this isn't necessary.
os.version
it isn't guaranteed to match a particular value. For example, this value
could be derived from data parsed for a cloud api or the OVF CIM OSType enum value;public String getDescription()
CentOS 32-bit
,Other Linux (32-bit)
This is the only required field in the operating system object. In some implementations, it is
this data that is used to parse the value of the name
, version
, and
arch
fields.public boolean is64Bit()
public OperatingSystem.Builder toBuilder()
Copyright © 2009-2012 jclouds. All Rights Reserved.