C# Class Akka.Cluster.MetricNumericConverter

INTERNAL API Encapsulates evaluation of validity of metric values, conversion of an actual metric value to an Metric for consumption by subscribed cluster entities.
显示文件 Open project: rogeralsing/akka.net

Public Methods

Method Description
ConvertNumber ( object from ) : double

Here in .NET-istan, we're going to use double for all metrics since we don't have convenient base classes for denoting general numeric types like Scala. If a specific metrics method needs an integral data type, it should convert down from double.

Defined ( double value ) : bool

A defined value is greater than zero and not NaN / Infinity

Method Details

ConvertNumber() public static method

Here in .NET-istan, we're going to use double for all metrics since we don't have convenient base classes for denoting general numeric types like Scala. If a specific metrics method needs an integral data type, it should convert down from double.
public static ConvertNumber ( object from ) : double
from object
return double

Defined() public static method

A defined value is greater than zero and not NaN / Infinity
public static Defined ( double value ) : bool
value double
return bool