C# 클래스 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.
파일 보기 프로젝트 열기: rogeralsing/akka.net

공개 메소드들

메소드 설명
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

메소드 상세

ConvertNumber() 공개 정적인 메소드

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
리턴 double

Defined() 공개 정적인 메소드

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