main
Class NodeInfo

java.lang.Object
  extended by main.NodeInfo

public class NodeInfo
extends java.lang.Object

The NodeInfo class holds information for one node on the PlanetLab network. The class contains all the possible information that can be retrieved from Sophia. This is not to be confused with the Node class which only has the information required to draw a node.


Field Summary
static java.lang.String DISKBYTESAVAILABLE
          This is equivalent to the case-insensitive string "diskbytesavailable."
static java.lang.String DISKBYTESUSED
          This is equivalent to the case-insensitive string "diskbytesused."
static java.lang.String DISKDRIVENAME
          This is equivalent to the case-insensitive string "diskdrivename."
static java.lang.String DISKPERCENTUSED
          This is equivalent to the case-insensitive string "diskpercentused."
static java.lang.String HTBCONTROL
          This is equivalent to the case-insensitive string "htbcontrol."
static java.lang.String HTBVALUE
          This is equivalent to the case-insensitive string "htbvalue."
static java.lang.String ID
          This is equivalent to the case-insensitive string "id."
static java.lang.String LATITUDE
          This is equivalent to the case-insensitive string "latitude."
static java.lang.String LOAD
          This is equivalent to the case-insensitive string "load."
static java.lang.String LOAD15
          This is equivalent to the case-insensitive string "load15."
static java.lang.String LOAD5
          This is equivalent to the case-insensitive string "load5."
static java.lang.String LOCALHOST
          This is equivalent to the case-insensitive string "localhost."
static java.lang.String LOCALTIME
          This is equivalent to the case-insensitive string "localtime."
static java.lang.String LONGITUDE
          This is equivalent to the case-insensitive string "longitude."
static java.lang.String LSMOD
          This is equivalent to the case-insensitive string "lsmod."
static java.lang.String MEMFREE
          This is equivalent to the case-insensitive string "memfree."
static java.lang.String MEMTOTAL
          This is equivalent to the case-insensitive string "memtotal."
static java.lang.String MEMUSED
          This is equivalent to the case-insensitive string "memused."
static java.lang.String MODEL
          This is equivalent to the case-insensitive string "model."
static java.lang.String MOUNTPOINT
          This is equivalent to the case-insensitive string "mountpoint."
private  java.util.jar.Attributes properties
           
static java.lang.String RPM
          This is equivalent to the case-insensitive string "rpm."
static java.lang.String UPDATE
          This is equivalent to the case-insensitive string "update."
static java.lang.String UPTIME
          This is equivalent to the case-insensitive string "uptime."
 
Constructor Summary
NodeInfo()
          Creates a new, uninitialized NodeInfo.
 
Method Summary
 java.lang.String getProperty(java.lang.String property)
          Gets the value of the given property.
 void setProperty(java.lang.String property, java.lang.String value)
          Sets the value of the given property to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
This is equivalent to the case-insensitive string "id."

See Also:
Constant Field Values

UPTIME

public static final java.lang.String UPTIME
This is equivalent to the case-insensitive string "uptime."

See Also:
Constant Field Values

MEMFREE

public static final java.lang.String MEMFREE
This is equivalent to the case-insensitive string "memfree."

See Also:
Constant Field Values

MEMTOTAL

public static final java.lang.String MEMTOTAL
This is equivalent to the case-insensitive string "memtotal."

See Also:
Constant Field Values

MEMUSED

public static final java.lang.String MEMUSED
This is equivalent to the case-insensitive string "memused."

See Also:
Constant Field Values

LOAD

public static final java.lang.String LOAD
This is equivalent to the case-insensitive string "load."

See Also:
Constant Field Values

LOAD5

public static final java.lang.String LOAD5
This is equivalent to the case-insensitive string "load5."

See Also:
Constant Field Values

LOAD15

public static final java.lang.String LOAD15
This is equivalent to the case-insensitive string "load15."

See Also:
Constant Field Values

LOCALHOST

public static final java.lang.String LOCALHOST
This is equivalent to the case-insensitive string "localhost."

See Also:
Constant Field Values

LOCALTIME

public static final java.lang.String LOCALTIME
This is equivalent to the case-insensitive string "localtime."

See Also:
Constant Field Values

LATITUDE

public static final java.lang.String LATITUDE
This is equivalent to the case-insensitive string "latitude."

See Also:
Constant Field Values

LONGITUDE

public static final java.lang.String LONGITUDE
This is equivalent to the case-insensitive string "longitude."

See Also:
Constant Field Values

MODEL

public static final java.lang.String MODEL
This is equivalent to the case-insensitive string "model."

See Also:
Constant Field Values

LSMOD

public static final java.lang.String LSMOD
This is equivalent to the case-insensitive string "lsmod."

See Also:
Constant Field Values

UPDATE

public static final java.lang.String UPDATE
This is equivalent to the case-insensitive string "update."

See Also:
Constant Field Values

DISKDRIVENAME

public static final java.lang.String DISKDRIVENAME
This is equivalent to the case-insensitive string "diskdrivename."

See Also:
Constant Field Values

DISKBYTESUSED

public static final java.lang.String DISKBYTESUSED
This is equivalent to the case-insensitive string "diskbytesused."

See Also:
Constant Field Values

DISKBYTESAVAILABLE

public static final java.lang.String DISKBYTESAVAILABLE
This is equivalent to the case-insensitive string "diskbytesavailable."

See Also:
Constant Field Values

DISKPERCENTUSED

public static final java.lang.String DISKPERCENTUSED
This is equivalent to the case-insensitive string "diskpercentused."

See Also:
Constant Field Values

MOUNTPOINT

public static final java.lang.String MOUNTPOINT
This is equivalent to the case-insensitive string "mountpoint."

See Also:
Constant Field Values

HTBCONTROL

public static final java.lang.String HTBCONTROL
This is equivalent to the case-insensitive string "htbcontrol."

See Also:
Constant Field Values

HTBVALUE

public static final java.lang.String HTBVALUE
This is equivalent to the case-insensitive string "htbvalue."

See Also:
Constant Field Values

RPM

public static final java.lang.String RPM
This is equivalent to the case-insensitive string "rpm."

See Also:
Constant Field Values

properties

private java.util.jar.Attributes properties
Constructor Detail

NodeInfo

public NodeInfo()
Creates a new, uninitialized NodeInfo.

Method Detail

setProperty

public void setProperty(java.lang.String property,
                        java.lang.String value)
                 throws javax.naming.InvalidNameException
Sets the value of the given property to the given value. The property argument must be one of the preset accepted strings or an exception will be thrown.

Parameters:
property - a String containing the name of the property to set
value - a String containing the value
Throws:
javax.naming.InvalidNameException - if property is not a valid property name

getProperty

public java.lang.String getProperty(java.lang.String property)
Gets the value of the given property.

Parameters:
property - a String containing the name of the property to get
Returns:
a String containing the property's value, or null if the property was not set