org.jppf.management
Class JPPFSystemInformation

java.lang.Object
  extended by org.jppf.management.JPPFSystemInformation
All Implemented Interfaces:
Serializable

public class JPPFSystemInformation
extends Object
implements Serializable

This class encapsulates the system information for a node.
It includes:

Author:
Laurent Cohen
See Also:
Serialized Form

Nested Class Summary
static class JPPFSystemInformation.HostIP
          Instances of this class represent a hostname / ip address pair.
 
Constructor Summary
JPPFSystemInformation(String uuid)
          Initialize this system information object with the specified uuid.
 
Method Summary
 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[] getPropertiesArray()
          Get all the proeprties 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 uuid.
 void populate()
          Populate this node information object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPPFSystemInformation

public JPPFSystemInformation(String uuid)
Initialize this system information object with the specified uuid.

Parameters:
uuid - the uuid of the corresponding JPPF component.
Method Detail

getSystem

public TypedProperties getSystem()
Get the map holding the system properties.

Returns:
a TypedProperties instance.
See Also:
SystemUtils.getSystemProperties()

getRuntime

public TypedProperties getRuntime()
Get the map holding the runtime information.

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.

Returns:
a TypedProperties instance.
See Also:
SystemUtils.getRuntimeInformation()

getEnv

public TypedProperties getEnv()
Get the map holding the environment variables.

Returns:
a TypedProperties instance.
See Also:
SystemUtils.getEnvironment()

getNetwork

public TypedProperties getNetwork()
Get the map of the network configuration.

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 "|".

Returns:
a TypedProperties instance.
See Also:
SystemUtils.getNetwork()

getJppf

public TypedProperties getJppf()
Get the map holding the JPPF configuration properties.

Returns:
a TypedProperties instance.
See Also:
JPPFConfiguration

getStorage

public TypedProperties getStorage()
Get the map holding the host storage information.

The map will contain the following information:

If the JVM version is prior to 1.6, the space information will not be available.

Returns:
a TypedProperties instance.
See Also:
SystemUtils.getStorageInformation()

populate

public void populate()
Populate this node information object.


getUuid

public TypedProperties getUuid()
Get the properties object holding the uuid.

Returns:
a TypedProperties wrapper for the uuid of the corresponding JPPF component.

getPropertiesArray

public TypedProperties[] getPropertiesArray()
Get all the proeprties as an array.

Returns:
an array of all the sets of properties.


Copyright © 2005-2010 JPPF Team.