public class JPPFSystemInformation extends Object implements PropertiesCollection<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
JPPFSystemInformation.HostIP
Instances of this class represent a hostname / ip address pair.
|
| Constructor and Description |
|---|
JPPFSystemInformation(String uuid,
boolean local,
boolean resolveInetAddressesNow)
Initialize this system information object with the specified uuid.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperties(String key,
TypedProperties properties)
Add the psecified properties with the specified keys.
|
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 |
getProperties(String key)
Add the specified properties with the specified key.
|
TypedProperties[] |
getPropertiesArray()
Get all the properties as an array.
|
TypedProperties |
getRuntime()
Get the map holding the runtime information.
|
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 evrsion information.
|
JPPFSystemInformation |
populate()
Populate this system information object.
|
public JPPFSystemInformation(String uuid, boolean local, boolean resolveInetAddressesNow)
uuid - the uuid of the corresponding JPPF component.local - true if the JPPF component is local (local node or local client executor), false otherwise.resolveInetAddressesNow - if true, then name resolution for InetAddresses should occur immediately,
otherwise it is different and executed in a separate thread.public TypedProperties getSystem()
TypedProperties instance.SystemUtils.getSystemProperties()public TypedProperties getRuntime()
The resulting map will contain the following properties:
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.JPPFConfigurationpublic TypedProperties getStorage()
The map will contain the following information:
TypedProperties instance.SystemUtils.getStorageInformation()public JPPFSystemInformation populate()
JPPFSystemInformation object.public TypedProperties getUuid()
TypedProperties wrapper for the uuid and version information of the corresponding JPPF component.public TypedProperties[] getPropertiesArray()
getPropertiesArray in interface PropertiesCollection<String>public void addProperties(String key, TypedProperties properties)
PropertiesCollectionaddProperties in interface PropertiesCollection<String>key - the key to use.properties - the properties to add.public TypedProperties getProperties(String key)
PropertiesCollectiongetProperties in interface PropertiesCollection<String>key - the key to use to retrieve the properties.Copyright © 2005-2012 JPPF Team.