|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.net.DatagramTest.PacketTracker
protected static class DatagramTest.PacketTracker
Tracker of packet statistics for a single client.
Field Summary | |
---|---|
protected SocketAddress |
m_addrSender
|
protected long |
m_cBytesReceived
|
protected long |
m_cGapMillis
|
protected long |
m_cGapPackets
|
protected long |
m_cGaps
|
protected int |
m_cOutOfOrder
|
protected int |
m_cPacketsRcvd
|
protected long |
m_cTotalOutOfOrderOffset
|
protected long |
m_lLastPacketArrivalTime
|
protected long |
m_lStartTime
|
protected int |
m_nMax
|
protected int |
m_nMin
|
protected int |
m_nNext
|
Constructor Summary | |
---|---|
DatagramTest.PacketTracker(SocketAddress addrSender)
Construct a PacketTracker for the given client. |
Method Summary | |
---|---|
long |
computeAverageOutOfOrderOffset()
Compute the average out of order offset for packets which arrived out of order. |
int |
computeAveragePacketSize()
Compute average packet size. |
long |
computeDurationMillis()
Return the duration this tracker has been accumulating data for. |
int |
computeMissingPackets()
Compute the number of missing packets. |
int |
computeSentPackets()
Compute the number of packets sent by the publisher. |
float |
computeSuccessRate()
Compute the success rate for receiveing packets. |
int |
computeThroughputMBPerSec()
Compute the throughput in megabytes per second. |
int |
computeThroughputPacketsPerSec()
Compute the throughput in megabytes per second. |
static void |
generateReport(String sPeriod,
Map mapTracker)
Generate a report for all PacketTrackers in the Map. |
String |
getTabularReport()
Return a report in tabular form. |
static String |
getTabularReportHeader()
Return a header for a tabular report. |
void |
reset(long lTimeMs)
Reset the counters. |
String |
toString()
Return a human readable report on the tracked data. |
static String |
toString(DatagramTest.PacketTracker[] aTracker)
Return a summay report on multiple trackers. |
void |
trackArrival(int nCurrent,
int cBytes)
Track the arrival of a new packet. |
Field Detail |
---|
protected SocketAddress m_addrSender
protected int m_cPacketsRcvd
protected long m_lStartTime
protected long m_lLastPacketArrivalTime
protected int m_nMin
protected int m_nMax
protected int m_nNext
protected int m_cOutOfOrder
protected long m_cTotalOutOfOrderOffset
protected long m_cBytesReceived
protected long m_cGaps
protected long m_cGapPackets
protected long m_cGapMillis
Constructor Detail |
---|
public DatagramTest.PacketTracker(SocketAddress addrSender)
addrSender
- the address of the clientMethod Detail |
---|
public void trackArrival(int nCurrent, int cBytes)
nCurrent
- packet numbercBytes
- packet size in bytespublic void reset(long lTimeMs)
lTimeMs
- the current timepublic long computeDurationMillis()
public int computeSentPackets()
public int computeMissingPackets()
public long computeAverageOutOfOrderOffset()
public float computeSuccessRate()
public int computeThroughputMBPerSec()
public int computeThroughputPacketsPerSec()
public int computeAveragePacketSize()
public static String getTabularReportHeader()
public String getTabularReport()
public String toString()
public static String toString(DatagramTest.PacketTracker[] aTracker)
aTracker
- an array of trackers which ran concurrentlypublic static void generateReport(String sPeriod, Map mapTracker)
sPeriod
- description of the period the results covermapTracker
- the map of trackers
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |