Beispiel #1
0
 /// <summary>Constructor - create a new metric</summary>
 /// <param name="nam">the name of the metrics to be used to publish the metric</param>
 /// <param name="registry">- where the metrics object will be registered</param>
 public MetricsIntValue(string nam, MetricsRegistry registry, string description)
     : base(nam, description)
 {
     value   = 0;
     changed = false;
     registry.Add(nam, this);
 }
 /// <summary>Constructor - create a new metric</summary>
 /// <param name="nam">the name of the metrics to be used to publish the metric</param>
 /// <param name="registry">- where the metrics object will be registered</param>
 public MetricsTimeVaryingLong(string nam, MetricsRegistry registry, string description
                               )
     : base(nam, description)
 {
     currentValue          = 0;
     previousIntervalValue = 0;
     registry.Add(nam, this);
 }
 protected internal MetricsDynamicMBeanBase(MetricsRegistry mr, string aMBeanDescription
                                            )
 {
     metricsRegistry         = mr;
     mbeanDescription        = aMBeanDescription;
     metricsRateAttributeMod = new ConcurrentHashMap <string, MetricsBase>();
     CreateMBeanInfo();
 }
 /// <summary>Constructor - create a new metric</summary>
 /// <param name="nam">the name of the metrics to be used to publish the metric</param>
 /// <param name="registry">- where the metrics object will be registered</param>
 public MetricsTimeVaryingRate(string nam, MetricsRegistry registry, string description
                               )
     : base(nam, description)
 {
     currentData          = new MetricsTimeVaryingRate.Metrics();
     previousIntervalData = new MetricsTimeVaryingRate.Metrics();
     minMax = new MetricsTimeVaryingRate.MinMax();
     registry.Add(nam, this);
 }
 /// <summary>Constructor - create a new metric</summary>
 /// <param name="nam">the name of the metrics to be used to publish the metric</param>
 /// <param name="registry">
 /// - where the metrics object will be registered
 /// A description of
 /// <see cref="MetricsBase.NoDescription"/>
 /// is used
 /// </param>
 public MetricsTimeVaryingLong(string nam, MetricsRegistry registry)
     : this(nam, registry, NoDescription)
 {
 }
Beispiel #6
0
 /// <summary>Constructor - create a new metric</summary>
 /// <param name="nam">the name of the metrics to be used to publish the metric</param>
 /// <param name="registry">
 /// - where the metrics object will be registered
 /// A description of
 /// <see cref="MetricsBase.NoDescription"/>
 /// is used
 /// </param>
 public MetricsIntValue(string nam, MetricsRegistry registry)
     : this(nam, registry, NoDescription)
 {
 }