|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.gui.stats.PortStats
public class PortStats
Specifies statistics being gathered and their latest values.
| Field Summary | |
|---|---|
protected long |
numBytes
Number of bytes in flows. |
protected int |
numFlows
Number of flows. |
protected long |
numPackets
Number of packets in flows. |
protected long |
updateTime
when these stats were last updated |
| Constructor Summary | |
|---|---|
PortStats(Match m)
Constructs a LinkStats to track stats for a specified match. |
|
| Method Summary | |
|---|---|
long |
getByteCount()
returns the current byte count |
int |
getFlowCount()
returns the current flow count |
long |
getLastUpdateTime()
returns the last update time |
long |
getPacketCount()
returns the current packet count |
java.lang.String |
toString()
|
void |
update(AggregateStatsReply r)
update the statistics with those contained in r |
void |
update(long packetCount,
long byteCount,
int flowCount)
Update the statistics with the specified values (the statistics are assumed to have been collected at the current time). |
void |
update(long packetCount,
long byteCount,
int flowCount,
long when)
update the statistics with the specified values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long numPackets
protected long numBytes
protected int numFlows
protected long updateTime
| Constructor Detail |
|---|
public PortStats(Match m)
| Method Detail |
|---|
public long getPacketCount()
public long getByteCount()
public int getFlowCount()
public long getLastUpdateTime()
public final void update(AggregateStatsReply r)
public final void update(long packetCount,
long byteCount,
int flowCount)
public void update(long packetCount,
long byteCount,
int flowCount,
long when)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||