Package akka.cluster.metrics
Class MetricsGossip
- java.lang.Object
-
- akka.cluster.metrics.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 Summary
Constructors Constructor Description MetricsGossip(scala.collection.immutable.Set<NodeMetrics> nodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricsGossip
$colon$plus(NodeMetrics newNodeMetrics)
Adds new localNodeMetrics
, or merges an existing.static MetricsGossip
apply(scala.collection.immutable.Set<NodeMetrics> nodes)
INTERNAL APIboolean
canEqual(java.lang.Object x$1)
MetricsGossip
copy(scala.collection.immutable.Set<NodeMetrics> nodes)
scala.collection.immutable.Set<NodeMetrics>
copy$default$1()
static MetricsGossip
empty()
boolean
equals(java.lang.Object x$1)
MetricsGossip
filter(scala.collection.immutable.Set<Address> includeNodes)
Only the nodes that are in theincludeNodes
Set.int
hashCode()
MetricsGossip
merge(MetricsGossip otherGossip)
Adds new remoteNodeMetrics
and merges existing from a remote gossip.scala.Option<NodeMetrics>
nodeMetricsFor(Address address)
ReturnsNodeMetrics
for a node if exists.scala.collection.immutable.Set<NodeMetrics>
nodes()
int
productArity()
java.lang.Object
productElement(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
MetricsGossip
remove(Address node)
java.lang.String
toString()
static scala.Option<scala.collection.immutable.Set<NodeMetrics>>
unapply(MetricsGossip x$0)
-
-
-
Constructor Detail
-
MetricsGossip
public MetricsGossip(scala.collection.immutable.Set<NodeMetrics> nodes)
-
-
Method Detail
-
empty
public static MetricsGossip empty()
-
apply
public static MetricsGossip apply(scala.collection.immutable.Set<NodeMetrics> nodes)
INTERNAL API- Parameters:
nodes
- metrics per node- Returns:
- (undocumented)
-
unapply
public static scala.Option<scala.collection.immutable.Set<NodeMetrics>> unapply(MetricsGossip x$0)
-
nodes
public scala.collection.immutable.Set<NodeMetrics> nodes()
-
remove
public MetricsGossip remove(Address node)
-
filter
public MetricsGossip filter(scala.collection.immutable.Set<Address> includeNodes)
Only the nodes that are in theincludeNodes
Set.- Parameters:
includeNodes
- (undocumented)- Returns:
- (undocumented)
-
merge
public MetricsGossip merge(MetricsGossip otherGossip)
Adds new remoteNodeMetrics
and merges existing from a remote gossip.- Parameters:
otherGossip
- (undocumented)- Returns:
- (undocumented)
-
$colon$plus
public MetricsGossip $colon$plus(NodeMetrics newNodeMetrics)
Adds new localNodeMetrics
, or merges an existing.- Parameters:
newNodeMetrics
- (undocumented)- Returns:
- (undocumented)
-
nodeMetricsFor
public scala.Option<NodeMetrics> nodeMetricsFor(Address address)
ReturnsNodeMetrics
for a node if exists.- Parameters:
address
- (undocumented)- Returns:
- (undocumented)
-
copy
public MetricsGossip copy(scala.collection.immutable.Set<NodeMetrics> nodes)
-
copy$default$1
public scala.collection.immutable.Set<NodeMetrics> copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-