コード例 #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);
 }
コード例 #2
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 MetricsTimeVaryingLong(string nam, MetricsRegistry registry, string description
                               )
     : base(nam, description)
 {
     currentValue          = 0;
     previousIntervalValue = 0;
     registry.Add(nam, this);
 }
コード例 #3
0
 protected internal MetricsDynamicMBeanBase(MetricsRegistry mr, string aMBeanDescription
                                            )
 {
     metricsRegistry         = mr;
     mbeanDescription        = aMBeanDescription;
     metricsRateAttributeMod = new ConcurrentHashMap <string, MetricsBase>();
     CreateMBeanInfo();
 }
コード例 #4
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 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);
 }
コード例 #5
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 MetricsTimeVaryingLong(string nam, MetricsRegistry registry)
     : this(nam, registry, NoDescription)
 {
 }
コード例 #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)
 {
 }