Class TransportStats
- java.lang.Object
-
- com.biglybt.core.networkmanager.impl.TransportStats
-
public class TransportStats extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static int
GRANULARITY
private static int
PRINT_INTERVAL
private java.util.TreeMap
read_sizes
private long
total_reads
private long
total_writes
private java.util.TreeMap
write_sizes
-
Constructor Summary
Constructors Constructor Description TransportStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bytesRead(int num_bytes_read)
void
bytesWritten(int num_bytes_written)
private void
printSizes(java.util.TreeMap size_map, long num_total)
(package private) void
printStats()
private void
updateSizes(java.util.TreeMap io_sizes, int num_bytes)
-
-
-
Field Detail
-
PRINT_INTERVAL
private static final int PRINT_INTERVAL
- See Also:
- Constant Field Values
-
GRANULARITY
private static final int GRANULARITY
- See Also:
- Constant Field Values
-
read_sizes
private final java.util.TreeMap read_sizes
-
write_sizes
private final java.util.TreeMap write_sizes
-
total_reads
private long total_reads
-
total_writes
private long total_writes
-
-
Method Detail
-
bytesRead
public void bytesRead(int num_bytes_read)
-
bytesWritten
public void bytesWritten(int num_bytes_written)
-
updateSizes
private void updateSizes(java.util.TreeMap io_sizes, int num_bytes)
-
printStats
void printStats()
-
printSizes
private void printSizes(java.util.TreeMap size_map, long num_total)
-
-