public abstract class CommonHostInfo extends Object implements HostInfo
HostInfo
.Constructor and Description |
---|
CommonHostInfo()
Creates a new instance and pre-computes values for
HostInfo.getSoftwareType() and HostInfo.getMachineType() . |
Modifier and Type | Method and Description |
---|---|
String |
getHostId()
Returns a unique id describing a host.
|
String |
getHostName()
Returns a human-readable host name that might change during runtime of
the host.
|
String |
getMachineType()
Returns the computer architecture of this host.
|
String |
getSoftwareType()
Returns the name of the underlying software host system (OS).
|
protected void |
setHostId(String hostId)
Sets the unique host id variable.
|
protected void |
setHostName(String hostName)
Sets the host name variable.
|
protected void |
setMachineType(String machineType)
Sets the bit architecture variable.
|
protected void |
setSoftwareType(String softwareType)
Sets the operating system family variable.
|
public CommonHostInfo()
HostInfo.getSoftwareType()
and HostInfo.getMachineType()
.public String getHostId()
HostInfo
protected void setHostId(String hostId)
hostId
- unique idpublic String getHostName()
HostInfo
getHostName
in interface HostInfo
null
in case the host name could
not be determinedprotected void setHostName(String hostName)
hostName
- the host namepublic String getSoftwareType()
HostInfo
getSoftwareType
in interface HostInfo
null
in case it could not be
determinedprotected void setSoftwareType(String softwareType)
softwareType
- the operating system familypublic String getMachineType()
HostInfo
getMachineType
in interface HostInfo
null
in case
it could not be determinedprotected void setMachineType(String machineType)
machineType
- the bit architectureCopyright © 2018 CoR-Lab. All rights reserved.