akka.cluster
Class Metric$

java.lang.Object
  extended by akka.cluster.Metric$
All Implemented Interfaces:
java.io.Serializable

public class Metric$
extends java.lang.Object
implements scala.Serializable

Factory for creating valid Metric instances.

See Also:
Serialized Form

Field Summary
static Metric$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
Metric$()
           
 
Method Summary
 scala.util.Either<java.lang.Object,java.lang.Object> convertNumber(java.lang.Object from)
          May involve rounding or truncation.
 scala.Option<Metric> create(java.lang.String name, java.lang.Number value, scala.Option<java.lang.Object> decayFactor)
          Creates a new Metric instance if the value is valid, otherwise None is returned.
 scala.Option<Metric> create(java.lang.String name, scala.util.Try<java.lang.Number> value, scala.Option<java.lang.Object> decayFactor)
          Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned.
 boolean defined(java.lang.Number value)
          An defined value is neither negative nor NaN/Infinite: JMX system load average and max heap can be 'undefined' for certain OS, in which case a -1 is returned SIGAR combined CPU can occasionally return a NaN or Infinite (known bug)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final Metric$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

Metric$

public Metric$()
Method Detail

create

public scala.Option<Metric> create(java.lang.String name,
                                   java.lang.Number value,
                                   scala.Option<java.lang.Object> decayFactor)
Creates a new Metric instance if the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.


create

public scala.Option<Metric> create(java.lang.String name,
                                   scala.util.Try<java.lang.Number> value,
                                   scala.Option<java.lang.Object> decayFactor)
Creates a new Metric instance if the Try is successful and the value is valid, otherwise None is returned. Invalid numeric values are negative and NaN/Infinite.


defined

public boolean defined(java.lang.Number value)
An defined value is neither negative nor NaN/Infinite:


convertNumber

public scala.util.Either<java.lang.Object,java.lang.Object> convertNumber(java.lang.Object from)
May involve rounding or truncation.