Class SocketStatisticsParser
java.lang.Object
ecmwf.common.rmi.SocketStatisticsParser
ECMWF Product Data Store (OpenECPDS) Project.
Parses the raw string produced by
ClientSocketStatistics into one or more TransferStatistics records.
Multiple entries are separated by | (one per TCP socket). Each entry has the format:
start:<ms> end:<ms> 0 0 [local]:port [remote]:port ... key:value ...
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<TransferStatistics> Parse a raw statistics string (as produced byClientSocketStatistics.toString()) into a list ofTransferStatisticsrecords, one per TCP connection.
-
Method Details
-
parse
Parse a raw statistics string (as produced byClientSocketStatistics.toString()) into a list ofTransferStatisticsrecords, one per TCP connection.- Parameters:
dataTransferId- the data transfer id to link each record toraw- the raw string (may contain multiple|-separated entries)- Returns:
- list of parsed records (never null, may be empty)
-