public class PacketStatsRecorderImpl implements PacketStatsRecorder
Class PacketStatsRecorderImpl. Provides packetstatsrecorderimpl functionality for the Hytale server.
java.lang.Object > PacketStatsRecorderImpl
Field Summary
entries
Field entries.
entry
Field entry.
now
Field now.
cutoff
Field cutoff.
info
Field info.
Method Detail
PacketStatsRecorderImpl
public
PacketStatsRecorderImpl
()
Method PacketStatsRecorderImpl.
recordSend
void
recordSend
(final int packetId, final int uncompressedSize, final int compressedSize)
Method recordSend.
- Parameters:
final intpacketIdfinal intuncompressedSizefinal intcompressedSize
recordReceive
void
recordReceive
(final int packetId, final int uncompressedSize, final int compressedSize)
Method recordReceive.
- Parameters:
final intpacketIdfinal intuncompressedSizefinal intcompressedSize
getEntry
PacketStatsEntry
getEntry
(final int packetId)
Method getEntry.
- Parameters:
final intpacketId
SizeRecord
new
SizeRecord
(now, uncompressedSize, compressedSize)
Method SizeRecord.
- Parameters:
nownowuncompressedSizeuncompressedSizecompressedSizecompressedSize
pruneOld
void
pruneOld
(final Queue queue, final long now)
Method pruneOld.
- Parameters:
final Queuequeuefinal longnow
hasData
boolean
hasData
()
Method hasData.
getPacketId
int
getPacketId
()
Method getPacketId.
getName
String
getName
()
Method getName.
getSentCount
int
getSentCount
()
Method getSentCount.
getSentUncompressedTotal
long
getSentUncompressedTotal
()
Method getSentUncompressedTotal.
getSentCompressedTotal
long
getSentCompressedTotal
()
Method getSentCompressedTotal.
getSentUncompressedMin
long
getSentUncompressedMin
()
Method getSentUncompressedMin.
getSentUncompressedMax
long
getSentUncompressedMax
()
Method getSentUncompressedMax.
getSentCompressedMin
long
getSentCompressedMin
()
Method getSentCompressedMin.
getSentCompressedMax
long
getSentCompressedMax
()
Method getSentCompressedMax.
getSentUncompressedAvg
double
getSentUncompressedAvg
()
Method getSentUncompressedAvg.
getSentCompressedAvg
double
getSentCompressedAvg
()
Method getSentCompressedAvg.
getReceivedCount
int
getReceivedCount
()
Method getReceivedCount.
getReceivedUncompressedTotal
long
getReceivedUncompressedTotal
()
Method getReceivedUncompressedTotal.
getReceivedCompressedTotal
long
getReceivedCompressedTotal
()
Method getReceivedCompressedTotal.
getReceivedUncompressedMin
long
getReceivedUncompressedMin
()
Method getReceivedUncompressedMin.
getReceivedUncompressedMax
long
getReceivedUncompressedMax
()
Method getReceivedUncompressedMax.
getReceivedCompressedMin
long
getReceivedCompressedMin
()
Method getReceivedCompressedMin.
getReceivedCompressedMax
long
getReceivedCompressedMax
()
Method getReceivedCompressedMax.
getReceivedUncompressedAvg
double
getReceivedUncompressedAvg
()
Method getReceivedUncompressedAvg.
getReceivedCompressedAvg
double
getReceivedCompressedAvg
()
Method getReceivedCompressedAvg.
getSentRecently
RecentStats
getSentRecently
()
Method getSentRecently.
getReceivedRecently
RecentStats
getReceivedRecently
()
Method getReceivedRecently.
computeRecentStats
RecentStats
computeRecentStats
(final Queue queue)
Method computeRecentStats.
- Parameters:
final Queuequeue
reset
void
reset
()
Method reset.