public static class GangliaReporter.Builder extends Object
GangliaReporter
instances. Defaults to using a tmax
of 60
,
a dmax
of 0
, converting rates to events/second, converting durations to
milliseconds, and not filtering metrics.Modifier and Type | Method and Description |
---|---|
GangliaReporter |
build(info.ganglia.gmetric4j.gmetric.GMetric... gmetrics)
Builds a
GangliaReporter with the given properties, announcing metrics to the
given GMetric client. |
GangliaReporter |
build(info.ganglia.gmetric4j.gmetric.GMetric gmetric)
Builds a
GangliaReporter with the given properties, announcing metrics to the
given GMetric client. |
GangliaReporter.Builder |
convertDurationsTo(TimeUnit durationUnit)
Convert durations to the given time unit.
|
GangliaReporter.Builder |
convertRatesTo(TimeUnit rateUnit)
Convert rates to the given time unit.
|
GangliaReporter.Builder |
filter(MetricFilter filter)
Only report metrics which match the given filter.
|
GangliaReporter.Builder |
prefixedWith(String prefix)
Prefix all metric names with the given string.
|
GangliaReporter.Builder |
withDMax(int dMax)
Use the given
dmax value when announcing metrics. |
GangliaReporter.Builder |
withTMax(int tMax)
Use the given
tmax value when announcing metrics. |
public GangliaReporter.Builder withTMax(int tMax)
tmax
value when announcing metrics.tMax
- the desired gmond tmax
valuethis
public GangliaReporter.Builder prefixedWith(String prefix)
prefix
- the prefix for all metric namesthis
public GangliaReporter.Builder withDMax(int dMax)
dmax
value when announcing metrics.dMax
- the desired gmond dmax
valuethis
public GangliaReporter.Builder convertRatesTo(TimeUnit rateUnit)
rateUnit
- a unit of timethis
public GangliaReporter.Builder convertDurationsTo(TimeUnit durationUnit)
durationUnit
- a unit of timethis
public GangliaReporter.Builder filter(MetricFilter filter)
filter
- a MetricFilter
this
public GangliaReporter build(info.ganglia.gmetric4j.gmetric.GMetric gmetric)
GangliaReporter
with the given properties, announcing metrics to the
given GMetric
client.gmetric
- the client to use for announcing metricsGangliaReporter
public GangliaReporter build(info.ganglia.gmetric4j.gmetric.GMetric... gmetrics)
GangliaReporter
with the given properties, announcing metrics to the
given GMetric
client.gmetrics
- the clients to use for announcing metricsGangliaReporter
Copyright © 2014. All Rights Reserved.