public class BgpPacketStatsImpl extends Object implements org.onosproject.bgp.controller.BgpPacketStats
| Constructor and Description |
|---|
BgpPacketStatsImpl()
Resets parameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInPacket()
Increments the received packet counter.
|
void |
addOutPacket()
Increments the sent packet counter.
|
void |
addOutPacket(int value)
Increments the sent packet counter by specified value.
|
void |
addWrongPacket()
Increments the wrong packet counter.
|
long |
getTime()
Get the time.
|
int |
inPacketCount()
Get the incoming packet count number.
|
int |
outPacketCount()
Get the outgoing packet count number.
|
void |
resetWrongPacket()
Resets wrong packet count.
|
void |
setTime(long time)
Sets the time.
|
int |
wrongPacketCount()
Get the wrong packet count number.
|
public int outPacketCount()
outPacketCount in interface org.onosproject.bgp.controller.BgpPacketStatspublic int inPacketCount()
inPacketCount in interface org.onosproject.bgp.controller.BgpPacketStatspublic int wrongPacketCount()
wrongPacketCount in interface org.onosproject.bgp.controller.BgpPacketStatspublic void addInPacket()
public void addOutPacket()
public void addOutPacket(int value)
value - of no of packets sentpublic void addWrongPacket()
public void resetWrongPacket()
public long getTime()
getTime in interface org.onosproject.bgp.controller.BgpPacketStatspublic void setTime(long time)
time - value to setCopyright © 2016. All rights reserved.