Class LoadInfo

java.lang.Object
com.zeroc.IceGrid.LoadInfo
All Implemented Interfaces:
Serializable, Cloneable

public final class LoadInfo extends Object implements Cloneable, Serializable
Information about the load of a node.
See Also:
  • Field Details

    • avg1

      public float avg1
      The load average over the past minute.
    • avg5

      public float avg5
      The load average over the past 5 minutes.
    • avg15

      public float avg15
      The load average over the past 15 minutes.
  • Constructor Details

    • LoadInfo

      public LoadInfo()
      Constructs a LoadInfo.
    • LoadInfo

      public LoadInfo(float avg1, float avg5, float avg15)
      Constructs a LoadInfo with values for all its fields.
      Parameters:
      avg1 - The load average over the past minute.
      avg5 - The load average over the past 5 minutes.
      avg15 - The load average over the past 15 minutes.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public LoadInfo clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

      public static void ice_write(OutputStream ostr, LoadInfo v)
      Marshals a LoadInfo into an output stream.
      Parameters:
      ostr - the output stream
      v - the LoadInfo to marshal; can be null
    • ice_read

      public static LoadInfo ice_read(InputStream istr)
      Unmarshals a LoadInfo from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled LoadInfo
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<LoadInfo> v)
      Marshals an optional LoadInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, LoadInfo v)
      Marshals an optional LoadInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<LoadInfo> ice_read(InputStream istr, int tag)
      Unmarshals an optional LoadInfo from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value