C# 클래스 HdrHistogram.HistogramFactory

Provides factory methods to define the features of your histogram.
파일 보기 프로젝트 열기: HdrHistogram/HdrHistogram.NET 1 사용 예제들

공개 메소드들

메소드 설명
Create ( ) : HistogramBase

Creates the histogram as configured by this factory instance.

Create ( long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase

A factory-method to create the Histogram.

Create ( long instanceId, long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase

A factory-method to create the Histogram.

With16BitBucketSize ( ) : HistogramFactory

Specify that the Histogram should be able to record count values in the 32bit range.

With32BitBucketSize ( ) : HistogramFactory

Specify that the Histogram should be able to record count values in the 32bit range.

With64BitBucketSize ( ) : HistogramFactory

Specify that the Histogram should be able to record count values in the 64bit range.

WithPrecisionOf ( int numberOfSignificantValueDigits ) : HistogramFactory

Specifies the number of significant figures that the Histogram should record.

WithThreadSafeReads ( ) : RecorderFactory

Specifies that the consumer will need to be able to read Histogram values in a thread safe manner. This will mean Recorder will be used to wrap the Histogram, allowing thread safe reads.

WithThreadSafeWrites ( ) : HistogramFactory

Specifies that the Histogram to be created should be thread safe when written to from multiple threads.

WithValuesFrom ( long lowestDiscernibleValue ) : HistogramFactory

Specifies the lowest value the Histogram should be configured to record.

WithValuesUpTo ( long highestTrackableValue ) : HistogramFactory

Specifies the highest value the Histogram should be configured to record.

비공개 메소드들

메소드 설명
HistogramFactory ( ) : System

Private constructor to force usage via the Static starter methods.

메소드 상세

Create() 공개 메소드

Creates the histogram as configured by this factory instance.
public Create ( ) : HistogramBase
리턴 HistogramBase

Create() 공개 추상적인 메소드

A factory-method to create the Histogram.
public abstract Create ( long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase
lowestDiscernibleValue long /// The lowest value that can be tracked (distinguished from 0) by the histogram. /// Must be a positive integer that is >= 1. /// May be internally rounded down to nearest power of 2. ///
highestTrackableValue long The highest value to be tracked by the histogram. Must be a positive integer that is >= (2 * ).
numberOfSignificantValueDigits int The number of significant decimal digits to which the histogram will maintain value resolution and separation. /// Must be a non-negative integer between 0 and 5. ///
리턴 HistogramBase

Create() 공개 추상적인 메소드

A factory-method to create the Histogram.
public abstract Create ( long instanceId, long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase
instanceId long An identifier for this instance.
lowestDiscernibleValue long /// The lowest value that can be tracked (distinguished from 0) by the histogram. /// Must be a positive integer that is >= 1. /// May be internally rounded down to nearest power of 2. ///
highestTrackableValue long The highest value to be tracked by the histogram. Must be a positive integer that is >= (2 * ).
numberOfSignificantValueDigits int The number of significant decimal digits to which the histogram will maintain value resolution and separation. /// Must be a non-negative integer between 0 and 5. ///
리턴 HistogramBase

With16BitBucketSize() 공개 정적인 메소드

Specify that the Histogram should be able to record count values in the 32bit range.
public static With16BitBucketSize ( ) : HistogramFactory
리턴 HistogramFactory

With32BitBucketSize() 공개 정적인 메소드

Specify that the Histogram should be able to record count values in the 32bit range.
public static With32BitBucketSize ( ) : HistogramFactory
리턴 HistogramFactory

With64BitBucketSize() 공개 정적인 메소드

Specify that the Histogram should be able to record count values in the 64bit range.
public static With64BitBucketSize ( ) : HistogramFactory
리턴 HistogramFactory

WithPrecisionOf() 공개 메소드

Specifies the number of significant figures that the Histogram should record.
public WithPrecisionOf ( int numberOfSignificantValueDigits ) : HistogramFactory
numberOfSignificantValueDigits int /// The number of significant decimal digits to which the histogram will maintain value resolution and separation. /// Must be a non-negative integer between 0 and 5. ///
리턴 HistogramFactory

WithThreadSafeReads() 공개 추상적인 메소드

Specifies that the consumer will need to be able to read Histogram values in a thread safe manner. This will mean Recorder will be used to wrap the Histogram, allowing thread safe reads.
public abstract WithThreadSafeReads ( ) : RecorderFactory
리턴 RecorderFactory

WithThreadSafeWrites() 공개 추상적인 메소드

Specifies that the Histogram to be created should be thread safe when written to from multiple threads.
public abstract WithThreadSafeWrites ( ) : HistogramFactory
리턴 HistogramFactory

WithValuesFrom() 공개 메소드

Specifies the lowest value the Histogram should be configured to record.
public WithValuesFrom ( long lowestDiscernibleValue ) : HistogramFactory
lowestDiscernibleValue long /// The lowest value that can be tracked (distinguished from 0) by the histogram. /// Must be a positive integer that is >= 1. /// May be internally rounded down to nearest power of 2. ///
리턴 HistogramFactory

WithValuesUpTo() 공개 메소드

Specifies the highest value the Histogram should be configured to record.
public WithValuesUpTo ( long highestTrackableValue ) : HistogramFactory
highestTrackableValue long /// The highest value to be tracked by the histogram. Must be a positive integer that is >= (2 * ). ///
리턴 HistogramFactory