Class SocketStatisticsParser

java.lang.Object
ecmwf.common.rmi.SocketStatisticsParser

public final class SocketStatisticsParser extends Object
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 Details

    • parse

      public static List<TransferStatistics> parse(long dataTransferId, String raw)
      Parse a raw statistics string (as produced by ClientSocketStatistics.toString()) into a list of TransferStatistics records, one per TCP connection.
      Parameters:
      dataTransferId - the data transfer id to link each record to
      raw - the raw string (may contain multiple |-separated entries)
      Returns:
      list of parsed records (never null, may be empty)