Class MetricsGossip

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class MetricsGossip
    extends java.lang.Object
    implements scala.Product, scala.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • MetricsGossip

        public MetricsGossip​(scala.collection.immutable.Set<NodeMetrics> nodes)
    • Method Detail

      • apply

        public static MetricsGossip apply​(scala.collection.immutable.Set<NodeMetrics> nodes)
        INTERNAL API

        Parameters:
        nodes - metrics per node
        Returns:
        (undocumented)
      • nodes

        public scala.collection.immutable.Set<NodeMetrics> nodes()
      • filter

        public MetricsGossip filter​(scala.collection.immutable.Set<Address> includeNodes)
        Only the nodes that are in the includeNodes Set.
        Parameters:
        includeNodes - (undocumented)
        Returns:
        (undocumented)
      • merge

        public MetricsGossip merge​(MetricsGossip otherGossip)
        Adds new remote NodeMetrics and merges existing from a remote gossip.
        Parameters:
        otherGossip - (undocumented)
        Returns:
        (undocumented)
      • $colon$plus

        public MetricsGossip $colon$plus​(NodeMetrics newNodeMetrics)
        Adds new local NodeMetrics, or merges an existing.
        Parameters:
        newNodeMetrics - (undocumented)
        Returns:
        (undocumented)
      • nodeMetricsFor

        public scala.Option<NodeMetrics> nodeMetricsFor​(Address address)
        Returns NodeMetrics for a node if exists.
        Parameters:
        address - (undocumented)
        Returns:
        (undocumented)
      • copy$default$1

        public scala.collection.immutable.Set<NodeMetrics> copy$default$1()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object