public class EnvironmentInformation extends Object
| Constructor and Description |
|---|
EnvironmentInformation()
No-arg constructor.
|
EnvironmentInformation(boolean collectEnvData)
Constructor which either returns an empty environment or a populated
environment from attempting to run system collection methods.
|
EnvironmentInformation(Element e)
Constructs an environment information object from information contained
within the given Element object.
|
EnvironmentInformation(Element e,
boolean isAgent)
Constructs an environment information object from information contained
within the given Agent Element object.
|
EnvironmentInformation(String hostname,
String hostId,
String osName,
String osVersion,
String osArchitecture,
String systemModel,
String systemManufacturer,
String cpuManufacturer,
String serialNumber,
String physmem,
String sockets,
String cores,
String virtcpus,
String cpuname,
String clockrate)
Constructs an environment information object with the given fields.
|
EnvironmentInformation(SystemEnvironment se)
Constructs an EnvironmentInformation object based on the SystemEnvironment object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClockRate() |
String |
getCores() |
String |
getCpuManufacturer()
Returns the cpuManufacturer.
|
String |
getCpuName() |
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() |
String |
getSystemManufacturer()
Returns the systemManufacturer.
|
String |
getSystemModel()
Returns the systemModel.
|
String |
getVirtCpus() |
static void |
main(String[] args) |
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
|
String |
toXMLString()
Converts the environment information object into an XML format.
|
public EnvironmentInformation()
public EnvironmentInformation(SystemEnvironment se)
public EnvironmentInformation(boolean collectEnvData)
public EnvironmentInformation(Element e)
public EnvironmentInformation(Element e, boolean isAgent)
public EnvironmentInformation(String hostname, String hostId, String osName, String osVersion, String osArchitecture, String systemModel, String systemManufacturer, String cpuManufacturer, String serialNumber, String physmem, String sockets, String cores, String virtcpus, String cpuname, String clockrate)
public static void main(String[] args)
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 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 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 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 getHostId()
public String getCpuManufacturer()
public String getPhysMem()
public String getSockets()
public String getCores()
public String getVirtCpus()
public String getCpuName()
public String getClockRate()
public String toXMLString()
Copyright © 2017. All rights reserved.