public class PcepPacketStatsImpl extends Object implements PcepPacketStats
| Constructor and Description |
|---|
PcepPacketStatsImpl()
Default constructor.
|
| 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()
Returns the time value.
|
int |
inPacketCount()
Returns the count for no of packets received.
|
int |
outPacketCount()
Returns the count for no of packets sent out.
|
void |
resetWrongPacket()
Resets wrong packet count.
|
void |
setTime(long time)
Sets the time value.
|
int |
wrongPacketCount()
Returns the count for no of wrong packets received.
|
public int outPacketCount()
PcepPacketStatsoutPacketCount in interface PcepPacketStatspublic int inPacketCount()
PcepPacketStatsinPacketCount in interface PcepPacketStatspublic int wrongPacketCount()
PcepPacketStatswrongPacketCount in interface PcepPacketStatspublic void addInPacket()
public void addOutPacket()
public void addOutPacket(int value)
value - of no of packets sentpublic void addWrongPacket()
public void resetWrongPacket()
public long getTime()
PcepPacketStatsgetTime in interface PcepPacketStatspublic void setTime(long time)
time - long value of time