java2gomd
Class Nic

java.lang.Object
  extended byjava2gomd.GomdObject
      extended byjava2gomd.Nic

public class Nic
extends java2gomd.GomdObject

Represents a Network Intercafe Card (NIC)


Field Summary
 GomdClient clientConnection
           
 
Constructor Summary
Nic(GomdClient c, java.lang.String s)
          Attaches the specified GomdClient under this NIC
 
Method Summary
 java.lang.String network_load()
          Retreives the network load for this NIC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientConnection

public GomdClient clientConnection
Constructor Detail

Nic

public Nic(GomdClient c,
           java.lang.String s)
Attaches the specified GomdClient under this NIC

Parameters:
c - The GomdClient to use when retreiving info
s - Name of this info. Eg. "eth0"
Method Detail

network_load

public java.lang.String network_load()
                              throws java.io.IOException
Retreives the network load for this NIC

Returns:
String with a HexaDecimal number representing the network load
Throws:
java.io.IOException