Class PortStatistics

java.lang.Object
   |
   +----Statistics
           |
           +----PortStatistics

public class PortStatistics
extends Statistics
Class definition for a counters for a switch port.

Version:
$Revision: 1.3 $, $Date: 2000/10/12 14:07:57 $
Author:
John Cavanaugh

Variable Index

 o bwAllocIn
The allocated input bandwidth.
 o bwAllocOut
The allocated output bandwidth.
 o rcvCells
The number of cells received by the port.
 o uptime
The uptime of the port.
 o xmitCells
The number of cells transmitted by the port.

Constructor Index

 o PortStatistics(long, long, long, long, long, long)
Constructs a port statistics object.

Method Index

 o getBwAllocIn()
Gets the port's allocated input bandwidth.
 o getBwAllocOut()
Gets the port's allocated output bandwidth.
 o getRcvCells()
Gets the number of cells received by the port.
 o getUptime()
Gets the length of time the port has been up.
 o getXmitCells()
Gets the number of cells transmitted by the port.

Variables

 o uptime
 private long uptime
The uptime of the port.

 o bwAllocIn
 private long bwAllocIn
The allocated input bandwidth.

 o rcvCells
 private long rcvCells
The number of cells received by the port.

 o bwAllocOut
 private long bwAllocOut
The allocated output bandwidth.

 o xmitCells
 private long xmitCells
The number of cells transmitted by the port.

Constructors

 o PortStatistics
 public PortStatistics(long time,
                       long uptime,
                       long bwAllocIn,
                       long rcvCells,
                       long bwAllocOut,
                       long xmitCells)
Constructs a port statistics object.

Parameters:
time - The time the update took place.
uptime - The time the port has been up.
bwAllocIn - The allocated input bandwidth.
rcvCells - The number of cells received.
bwAllocOut - The allocated output bandwidth.
xmitCells - The number of cells transmitted.

Methods

 o getUptime
 public long getUptime()
Gets the length of time the port has been up.

Returns:
the time the port has been up.
 o getBwAllocIn
 public long getBwAllocIn()
Gets the port's allocated input bandwidth.

Returns:
the port's allocated input bandwidth.
 o getRcvCells
 public long getRcvCells()
Gets the number of cells received by the port.

Returns:
the number of cells received by the port.
 o getBwAllocOut
 public long getBwAllocOut()
Gets the port's allocated output bandwidth.

Returns:
the port's allocated output bandwidth.
 o getXmitCells
 public long getXmitCells()
Gets the number of cells transmitted by the port.

Returns:
the number of cells transmitted by the port.