Class NodePort
java.lang.Object
|
+----CollectorUpdate
|
+----NodePort
- public class NodePort
- extends CollectorUpdate
Collector class for reporting the ports on a node.
- Version:
- $Revision: 1.12 $, $Date: 2000/10/12 14:09:51 $
- Author:
- Mike Spengler, Joseph Thomas
-
allocin
-
Input allocated port bandwidth
-
allocout
- Output allocated port bandwidth
-
bwin
- Input maximum port bandwidth
-
bwout
- Output maximum port bandwidth
-
cellsin
- Input port cell count
-
cellsout
- Output port cell count
-
isControl
-
True if this is a switch port and it is the control
processor's port.
-
isSwitch
-
True if this port is for a switch node.
-
portName
- Port name.
-
uptime
- Port Uptime
-
NodePort(NodeAddress, String, boolean, boolean)
- Class constructor.
-
NodePort(NodeAddress, String, boolean, boolean, int, int, int, int, int, int, int)
- Class constructor.
-
getInputAllocatedBW()
- Returns the allocated input bandwidth in cells for this object.
-
getInputBandwidth()
- Returns the maximum input bandwidth in cells for this object.
-
getInputCells()
- Returns the input cell count for this object.
-
getOutputAllocatedBW()
- Returns the alloacted output bandwidth in cells for this object.
-
getOutputBandwidth()
- Returns the maximum output bandwidth in cells for this object.
-
getOutputCells()
- Returns the output cell count for this object.
-
getPortName()
- Gets the port's name.
-
getUptime()
- Returns the port uptime for this object.
-
isControl()
- Determines whether the update applies to a switch control processor.
-
isSwitch()
- Determines whether the update applies to a switch.
-
process(CollectorNetwork)
- Applies this update object to the network model.
-
toString()
- Returns a string describing this object.
portName
private String portName
- Port name.
uptime
private int uptime
- Port Uptime
bwin
private int bwin
- Input maximum port bandwidth
allocin
private int allocin
- Input allocated port bandwidth
cellsin
private int cellsin
- Input port cell count
bwout
private int bwout
- Output maximum port bandwidth
allocout
private int allocout
- Output allocated port bandwidth
cellsout
private int cellsout
- Output port cell count
isSwitch
private boolean isSwitch
-
True if this port is for a switch node.
isControl
private boolean isControl
-
True if this is a switch port and it is the control
processor's port.
NodePort
public NodePort(NodeAddress addr,
String portName,
boolean isSwitch,
boolean isControl,
int uptime,
int bwin,
int allocin,
int cellsin,
int bwout,
int allocout,
int cellsout)
- Class constructor.
- Parameters:
- addr - the address of the node from which the data
for this update was obtained
- portName - the name of a port on the node
- isSwitch -
true if port is for a switch node
- isControl -
true if port is a control processor
- uptime - port uptime
- bwin - port maximum input bandwidth
- allocin - port allocated input bandwidth
- cellsin - port input cell count
- bwout - port maximum output bandwidth
- allocout - port allocated output bandwidth
- cellsout - port output cell count
NodePort
public NodePort(NodeAddress addr,
String portName,
boolean isSwitch,
boolean isControl)
- Class constructor.
- Parameters:
- addr - the address of the node from which the data
for this update was obtained
- portName - the name of a port on the node
- isSwitch -
true if port is for a switch node
- isControl -
true if port is a control processor
process
public void process(CollectorNetwork net)
- Applies this update object to the network model.
- Parameters:
- net - the network which this object updates
- Overrides:
- process in class CollectorUpdate
getPortName
public String getPortName()
- Gets the port's name.
- Returns:
- the port name
isSwitch
public boolean isSwitch()
- Determines whether the update applies to a switch.
- Returns:
-
True if this port is for a switch node
isControl
public boolean isControl()
- Determines whether the update applies to a switch control processor.
- Returns:
-
True if this is a switch control processor's
port
getUptime
public int getUptime()
- Returns the port uptime for this object.
- Returns:
- the time (in hundredths of a second) this port has
been up.
getInputBandwidth
public int getInputBandwidth()
- Returns the maximum input bandwidth in cells for this object.
- Returns:
- maximum input bandwidth for this port
getInputAllocatedBW
public int getInputAllocatedBW()
- Returns the allocated input bandwidth in cells for this object.
- Returns:
- allocated input bandwidth for this port
getInputCells
public int getInputCells()
- Returns the input cell count for this object.
- Returns:
- input cell count for this port
getOutputBandwidth
public int getOutputBandwidth()
- Returns the maximum output bandwidth in cells for this object.
- Returns:
- maximum output bandwidth for this port
getOutputAllocatedBW
public int getOutputAllocatedBW()
- Returns the alloacted output bandwidth in cells for this object.
- Returns:
- allocated output bandwidth for this port
getOutputCells
public int getOutputCells()
- Returns the output cell count for this object.
- Returns:
- output cell count for this port
toString
public String toString()
- Returns a string describing this object.
- Returns:
- string describing this object
- Overrides:
- toString in class Object