public interface MetricProxyService
| Modifier and Type | Method and Description |
|---|---|
TimeStampedMetric |
createMetric(CounterDescriptor descriptor)
Creates a new
TimeStampedCounter object based upon the provided
CounterDescriptor. |
TimeStampedMetric |
createMetric(GaugeDescriptor descriptor)
Creates a new
TimeStampedGauge object based upon the provided
GaugeDescriptor. |
TimeStampedMetric |
createMetric(HistogramDescriptor descriptor)
Creates a new
TimeStampedHistogram object based upon the provided
HistogramDescriptor. |
TimeStampedMetric |
createMetric(MeterDescriptor descriptor)
Creates a new
TimeStampedMeter object based upon the provided
MeterDescriptor. |
TimeStampedMetric |
createMetric(RatioGaugeDescriptor descriptor)
Creates a new
TimeStampedRatioGauge object based upon the
provided RatioGaugeDescriptor. |
TimeStampedMetric |
createMetric(RollingCounterDescriptor descriptor)
Creates a new
TimeStampedRollingCounter object based upon the
provided RollingCounterDescriptor. |
TimeStampedMetric |
createMetric(TimerDescriptor descriptor)
Creates a new
TimeStampedTimer object based upon the provided
TimerDescriptor. |
void |
removeMetric(String toRemove)
Removes an existing
TimeStampedMetric object from the metering
framework, essentially unregistering it so that the framework no longer
processes its values and exposes them via JMX. |
void |
updateMetric(MetricUpdate metricUpdate)
Updates a
TimeStampedMetric object based upon the provided
MetricUpdate. |
TimeStampedMetric createMetric(CounterDescriptor descriptor)
TimeStampedCounter object based upon the provided
CounterDescriptor.descriptor - CounterDescriptor initialized to embody the
desired properties of the TimeStampedMetric
to be createdTimeStampedMetric counter objectTimeStampedMetric createMetric(GaugeDescriptor descriptor)
TimeStampedGauge object based upon the provided
GaugeDescriptor.descriptor - GaugeDescriptor initialized to embody the
desired properties of the TimeStampedMetric
to be createdTimeStampedMetric gauge objectTimeStampedMetric createMetric(HistogramDescriptor descriptor)
TimeStampedHistogram object based upon the provided
HistogramDescriptor.descriptor - HistogramDescriptor initialized to embody the
desired properties of the TimeStampedMetric
to be createdTimeStampedMetric histogram objectTimeStampedMetric createMetric(MeterDescriptor descriptor)
TimeStampedMeter object based upon the provided
MeterDescriptor.descriptor - MeterDescriptor initialized to embody the
desired properties of the TimeStampedMetric
to be createdTimeStampedMetric meter objectTimeStampedMetric createMetric(RatioGaugeDescriptor descriptor)
TimeStampedRatioGauge object based upon the
provided RatioGaugeDescriptor.descriptor - RatioGaugeDescriptor initialized to embody the
desired properties of the TimeStampedMetric
to be createdTimeStampedMetric ratio gauge objectTimeStampedMetric createMetric(RollingCounterDescriptor descriptor)
TimeStampedRollingCounter object based upon the
provided RollingCounterDescriptor.descriptor - RollingCounterDescriptor initialized to embody
the desired properties of the TimeStampedMetric
to be createdTimeStampedMetric rolling counter objectTimeStampedMetric createMetric(TimerDescriptor descriptor)
TimeStampedTimer object based upon the provided
TimerDescriptor.descriptor - TimerDescriptor initialized to embody the
desired properties of the TimeStampedMetric
to be createdTimeStampedMetric timer objectvoid removeMetric(String toRemove)
TimeStampedMetric object from the metering
framework, essentially unregistering it so that the framework no longer
processes its values and exposes them via JMX. If the TimeStampedMetric was exposed via JMX it will be removed from the JMX
server. Values already persisted for the TimeStampedMetric will
not be altered, but will be allowed to eventually age out if the metric
is not eventually re-registered to provide new values.toRemove - UID of TimeStampedMetric to remove from
metering frameworkvoid updateMetric(MetricUpdate metricUpdate)
TimeStampedMetric object based upon the provided
MetricUpdate.metricUpdate - MetricUpdate objectNotFoundException - if the corresponding metric identifier does
not existCopyright © 2014. All Rights Reserved.