C# Class Akka.Cluster.PerformanceCounterMetricsCollector

Loads Windows system metrics through Windows Performance Counters
Inheritance: IMetricsCollector
Mostra file Open project: rogeralsing/akka.net

Public Methods

Method Description
ClrProcessMemoryUsed ( ) : Metric

Gets the amount of memory used by this particular CLR process. Creates a new instance each time.

Dispose ( ) : void
Metrics ( ) : ImmutableHashSet
PerformanceCounterMetricsCollector ( ActorSystem system ) : System

This constructor is used when creating an instance from configured fully-qualified name

PerformanceCounterMetricsCollector ( Akka.Actor.Address address, double decayFactor ) : System
Processors ( ) : Metric

Returns the number of available processors. Creates a new instance each time.

Sample ( ) : NodeMetrics

Samples and collects new data points. Create a new instance each time.

SystemLoadAverage ( ) : Metric

Returns the system load average. Creates a new instance each time.

SystemMaxMemory ( ) : Metric

Gets the total amount of system memory. Creates a new instance each time.

SystemMemoryAvailable ( ) : Metric

Gets the amount of system memory available. Creates a new instance each time.

Private Methods

Method Description
GetVbTotalPhysicalMemory ( ) : double
PerformanceCounterMetricsCollector ( Cluster cluster ) : System

Method Details

ClrProcessMemoryUsed() public method

Gets the amount of memory used by this particular CLR process. Creates a new instance each time.
public ClrProcessMemoryUsed ( ) : Metric
return Metric

Dispose() public method

public Dispose ( ) : void
return void

Metrics() public method

public Metrics ( ) : ImmutableHashSet
return ImmutableHashSet

PerformanceCounterMetricsCollector() public method

This constructor is used when creating an instance from configured fully-qualified name
public PerformanceCounterMetricsCollector ( ActorSystem system ) : System
system ActorSystem
return System

PerformanceCounterMetricsCollector() public method

public PerformanceCounterMetricsCollector ( Akka.Actor.Address address, double decayFactor ) : System
address Akka.Actor.Address
decayFactor double
return System

Processors() public method

Returns the number of available processors. Creates a new instance each time.
public Processors ( ) : Metric
return Metric

Sample() public method

Samples and collects new data points. Create a new instance each time.
public Sample ( ) : NodeMetrics
return NodeMetrics

SystemLoadAverage() public method

Returns the system load average. Creates a new instance each time.
public SystemLoadAverage ( ) : Metric
return Metric

SystemMaxMemory() public method

Gets the total amount of system memory. Creates a new instance each time.
public SystemMaxMemory ( ) : Metric
return Metric

SystemMemoryAvailable() public method

Gets the amount of system memory available. Creates a new instance each time.
public SystemMemoryAvailable ( ) : Metric
return Metric