Class MetricsViewHelper

java.lang.Object
com.zeroc.IceMX.MetricsViewHelper

public final class MetricsViewHelper extends Object
Helper class for marshaling/unmarshaling MetricsView.
  • Constructor Details

    • MetricsViewHelper

      public MetricsViewHelper()
  • Method Details

    • write

      public static void write(OutputStream ostr, Map<String,Metrics[]> v)
      Marshals a dictionary of MetricsView into an output stream.
      Parameters:
      ostr - the output stream
      v - the dictionary to marshal
    • read

      public static Map<String,Metrics[]> read(InputStream istr)
      Unmarshals a dictionary of MetricsView from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the dictionary
    • write

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

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

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