add more from sys props
This commit is contained in:
parent
98fee69f76
commit
14826fdca5
|
@ -20,7 +20,9 @@ public class OperatingSystem {
|
||||||
private String patchLevel;
|
private String patchLevel;
|
||||||
private String vendor;
|
private String vendor;
|
||||||
private String vendorVersion;
|
private String vendorVersion;
|
||||||
|
private String dataModel;
|
||||||
|
private String cpuEndian;
|
||||||
|
|
||||||
private OperatingSystem() {
|
private OperatingSystem() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +34,9 @@ public class OperatingSystem {
|
||||||
os.version = props.getProperty("os.version");
|
os.version = props.getProperty("os.version");
|
||||||
os.arch = props.getProperty("os.arch");
|
os.arch = props.getProperty("os.arch");
|
||||||
os.patchLevel = props.getProperty("sun.os.patch.level");
|
os.patchLevel = props.getProperty("sun.os.patch.level");
|
||||||
|
os.dataModel = props.getProperty("sun.arch.data.model");
|
||||||
|
os.cpuEndian = props.getProperty("sun.cpu.endian");
|
||||||
|
|
||||||
if (os.name.equals("Linux")) {
|
if (os.name.equals("Linux")) {
|
||||||
os.getLinuxInfo();
|
os.getLinuxInfo();
|
||||||
}
|
}
|
||||||
|
@ -109,6 +113,14 @@ public class OperatingSystem {
|
||||||
return this.vendorVersion;
|
return this.vendorVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDataModel() {
|
||||||
|
return this.dataModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCpuEndian() {
|
||||||
|
return this.cpuEndian;
|
||||||
|
}
|
||||||
|
|
||||||
private void getLinuxInfo() {
|
private void getLinuxInfo() {
|
||||||
VendorInfo[] info = {
|
VendorInfo[] info = {
|
||||||
new GenericVendor("mandrake-release", "Mandrake"),
|
new GenericVendor("mandrake-release", "Mandrake"),
|
||||||
|
|
Loading…
Reference in New Issue