public class JPPFSystemInformation extends Object implements PropertiesCollection<String>
Modifier and Type | Method and Description |
---|---|
void |
addProperties(String key,
TypedProperties properties)
Add the specified properties with the specified keys.
|
boolean |
containsKey(String name)
Determine whether this properties collection contains a property witht he specified key.
|
TypedProperties |
getEnv()
Get the map holding the environment variables.
|
TypedProperties |
getJppf()
Get the map holding the JPPF configuration properties.
|
TypedProperties |
getNetwork()
Get the map of the network configuration.
|
TypedProperties |
getOS()
Get the properties object holding the operating system information.
|
TypedProperties |
getProperties(String key)
Add the specified properties with the specified key.
|
TypedProperties[] |
getPropertiesArray()
Get all the properties as an array.
|
String |
getProperty(String name)
Get the value of the property with the specified name.
|
TypedProperties |
getRuntime()
Get the map holding the runtime information.
|
TypedProperties |
getStats()
Get the properties object holding the JPPF server statistics, listed as constants in
JPPFStatisticsHelper . |
TypedProperties |
getStorage()
Get the map holding the host storage information.
|
TypedProperties |
getSystem()
Get the map holding the system properties.
|
TypedProperties |
getUuid()
Get the properties object holding the JPPF uuid and version information.
|
JPPFSystemInformation |
populate()
Populate this system information object.
|
String |
toString() |
public TypedProperties getSystem()
TypedProperties
instance.SystemUtils.getSystemProperties()
public TypedProperties getRuntime()
The resulting map will contain the following properties:
maxMemory - usedMemory
Some or all of these properties may be missing if a security manager is installed
that does not grant access to the related Runtime
APIs.
TypedProperties
instance.SystemUtils.getRuntimeInformation()
public TypedProperties getEnv()
TypedProperties
instance.SystemUtils.getEnvironment()
public TypedProperties getNetwork()
The resulting map will contain the following properties:
Each property is a space-separated list of hostname|ip_address pairs, the hostname and ip address being separated by a pipe symbol "|".
TypedProperties
instance.SystemUtils.getNetwork()
public TypedProperties getJppf()
TypedProperties
instance.JPPFConfiguration.getProperties()
public TypedProperties getStorage()
The map will contain the following information:
TypedProperties
instance.SystemUtils.getStorageInformation()
public TypedProperties getUuid()
TypedProperties
wrapper for the uuid and version information of the corresponding JPPF component.public TypedProperties getStats()
JPPFStatisticsHelper
.TypedProperties
wrapper for the server statistics; for a node this will return an empty set of properties.public TypedProperties getOS()
TypedProperties
wrapper for the operating system information of the corresponding JPPF component.public TypedProperties[] getPropertiesArray()
getPropertiesArray
in interface PropertiesCollection<String>
public void addProperties(String key, TypedProperties properties)
PropertiesCollection
addProperties
in interface PropertiesCollection<String>
key
- the key to use.properties
- the properties to add.public TypedProperties getProperties(String key)
PropertiesCollection
getProperties
in interface PropertiesCollection<String>
key
- the key to use to retrieve the properties.public JPPFSystemInformation populate()
JPPFSystemInformation
object.public String getProperty(String name)
PropertiesCollection
getProperty
in interface PropertiesCollection<String>
name
- the name of the property to find.null
if the property could not be found.public boolean containsKey(String name)
PropertiesCollection
containsKey
in interface PropertiesCollection<String>
name
- the name of the property to check.true
if the property could be found, false
otherwise.Copyright © 2005-2019 JPPF Team.