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
-
bwAllocIn
- The allocated input bandwidth.
-
bwAllocOut
- The allocated output bandwidth.
-
rcvCells
- The number of cells received by the port.
-
uptime
- The uptime of the port.
-
xmitCells
- The number of cells transmitted by the port.
-
PortStatistics(long, long, long, long, long, long)
- Constructs a port statistics object.
-
getBwAllocIn()
- Gets the port's allocated input bandwidth.
-
getBwAllocOut()
- Gets the port's allocated output bandwidth.
-
getRcvCells()
- Gets the number of cells received by the port.
-
getUptime()
- Gets the length of time the port has been up.
-
getXmitCells()
- Gets the number of cells transmitted by the port.
uptime
private long uptime
- The uptime of the port.
bwAllocIn
private long bwAllocIn
- The allocated input bandwidth.
rcvCells
private long rcvCells
- The number of cells received by the port.
bwAllocOut
private long bwAllocOut
- The allocated output bandwidth.
xmitCells
private long xmitCells
- The number of cells transmitted by the port.
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.
getUptime
public long getUptime()
- Gets the length of time the port has been up.
- Returns:
- the time the port has been up.
getBwAllocIn
public long getBwAllocIn()
- Gets the port's allocated input bandwidth.
- Returns:
- the port's allocated input bandwidth.
getRcvCells
public long getRcvCells()
- Gets the number of cells received by the port.
- Returns:
- the number of cells received by the port.
getBwAllocOut
public long getBwAllocOut()
- Gets the port's allocated output bandwidth.
- Returns:
- the port's allocated output bandwidth.
getXmitCells
public long getXmitCells()
- Gets the number of cells transmitted by the port.
- Returns:
- the number of cells transmitted by the port.