public class SystemEnvironment extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getClockRate() |
protected String |
getCommandOutput(String... command) |
String |
getCores() |
String |
getCpuManufacturer()
Returns the cpuManufacturer.
|
String |
getCpuName() |
protected String |
getFileContent(String filename) |
String |
getHostId()
Returns the hostId.
|
String |
getHostname()
Returns the hostname.
|
String |
getOsArchitecture()
Returns the osArchitecture.
|
String |
getOsName()
Returns the osName.
|
String |
getOsVersion()
Returns the osVersion.
|
String |
getPhysMem() |
String |
getSerialNumber()
Returns the serialNumber.
|
String |
getSockets() |
static SystemEnvironment |
getSystemEnvironment() |
String |
getSystemManufacturer()
Returns the systemManufacturer.
|
String |
getSystemModel()
Returns the systemModel.
|
String |
getVirtCpus() |
void |
setClockRate(String clockrate)
Sets the clockrate
|
void |
setCores(String cores)
Sets the cores
|
void |
setCpuManufacturer(String cpuManufacturer)
Sets the cpu manufacturer.
|
void |
setCpuName(String cpuname)
Sets the cpuname
|
void |
setHostId(String hostId)
Sets the hostid.
|
void |
setHostname(String hostname)
Sets the hostname.
|
void |
setOsArchitecture(String osArchitecture)
Sets the OS architecture.
|
void |
setOsName(String osName)
Sets the OS name.
|
void |
setOsVersion(String osVersion)
Sets the OS version.
|
void |
setPhysMem(String physmem)
Sets the physmem
|
void |
setSerialNumber(String serialNumber)
Sets the serial number.
|
void |
setSockets(String sockets)
Sets the sockets
|
void |
setSystemManufacturer(String systemManufacturer)
Sets the system manufacturer.
|
void |
setSystemModel(String systemModel)
Sets the system model.
|
void |
setVirtCpus(String virtcpus)
Sets the virtcpus
|
public static SystemEnvironment getSystemEnvironment()
public void setHostname(String hostname)
hostname - The hostname to set.public void setOsName(String osName)
osName - The osName to set.public void setOsVersion(String osVersion)
osVersion - The osVersion to set.public void setOsArchitecture(String osArchitecture)
osArchitecture - The osArchitecture to set.public void setSystemModel(String systemModel)
systemModel - The systemModel to set.public void setSystemManufacturer(String systemManufacturer)
systemManufacturer - The systemManufacturer to set.public void setCpuManufacturer(String cpuManufacturer)
cpuManufacturer - The cpuManufacturer to set.public void setSerialNumber(String serialNumber)
serialNumber - The serialNumber to set.public void setPhysMem(String physmem)
physmem - The physmem to set.public void setSockets(String sockets)
sockets - The sockets to set.public void setCores(String cores)
cores - The cores to set.public void setVirtCpus(String virtcpus)
virtcpus - The virtcpus to set.public void setCpuName(String cpuname)
cpuname - The cpuname to set.public void setClockRate(String clockrate)
clockrate - The clockrate to set.public void setHostId(String hostId)
hostId - The hostid to set.public String getHostname()
public String getOsName()
public String getOsVersion()
public String getOsArchitecture()
public String getSystemModel()
public String getSystemManufacturer()
public String getSerialNumber()
public String getPhysMem()
public String getSockets()
public String getCores()
public String getVirtCpus()
public String getCpuName()
public String getClockRate()
public String getHostId()
public String getCpuManufacturer()
Copyright © 2017. All rights reserved.