Class MetricsMapHelper

java.lang.Object
com.zeroc.IceMX.MetricsMapHelper

public final class MetricsMapHelper extends Object
Helper class for marshaling/unmarshaling MetricsMap.
  • Constructor Details

    • MetricsMapHelper

      public MetricsMapHelper()
  • Method Details

    • write

      public static void write(OutputStream ostr, Metrics[] v)
      Marshals a list of MetricsMap into an output stream.
      Parameters:
      ostr - the output stream
      v - the list to marshal
    • read

      public static Metrics[] read(InputStream istr)
      Unmarshals a list of MetricsMap from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the list
    • write

      public static void write(OutputStream ostr, int tag, Optional<Metrics[]> v)
      Marshals an optional list of MetricsMap into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the list to marshal
    • write

      public static void write(OutputStream ostr, int tag, Metrics[] v)
      Marshals an optional list of MetricsMap into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the list to marshal
    • read

      public static Optional<Metrics[]> read(InputStream istr, int tag)
      Unmarshals an optional list of MetricsMap from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the list