public class GraphiteConfig extends ScheduledReporterConfigSupport<GraphiteConfig>
GraphiteReporter
instances.Constructor and Description |
---|
GraphiteConfig() |
Modifier and Type | Method and Description |
---|---|
GraphiteConfig |
disable()
Disable the Graphite publisher.
|
GraphiteConfig |
durationUnit(java.util.concurrent.TimeUnit durationUnit)
Convert durations to the given time unit.
|
GraphiteConfig |
enable()
Enable the Graphite publisher.
|
java.util.concurrent.TimeUnit |
getDurationUnit()
The state of duration conversion.
|
java.lang.String |
getPrefix()
The state of the metric name prefix.
|
java.util.concurrent.TimeUnit |
getRateUnit()
The state of rate conversion.
|
com.codahale.metrics.graphite.GraphiteSender |
getSender()
The
GraphiteSender instance. |
boolean |
isEnabled()
The state of the Graphite publisher.
|
GraphiteConfig |
prefix(java.lang.String prefix)
Prefix all metric names with the given string.
|
GraphiteConfig |
rateUnit(java.util.concurrent.TimeUnit rateUnit)
Convert rates to the given time unit.
|
GraphiteConfig |
sender(com.codahale.metrics.graphite.GraphiteSender sender)
Configure the
GraphiteSender instance. |
getReporterInterval, reporterInterval
excludeFilter, getExcludeFilter, getIncludeFilter, includeFilter
public boolean isEnabled()
public GraphiteConfig enable()
public GraphiteConfig disable()
public com.codahale.metrics.graphite.GraphiteSender getSender()
GraphiteSender
instance.public GraphiteConfig sender(com.codahale.metrics.graphite.GraphiteSender sender)
GraphiteSender
instance.sender
- the report senderthis
public java.lang.String getPrefix()
public GraphiteConfig prefix(java.lang.String prefix)
prefix
- the prefix for all metric namesthis
public java.util.concurrent.TimeUnit getRateUnit()
public GraphiteConfig rateUnit(java.util.concurrent.TimeUnit rateUnit)
rateUnit
- a unit of timethis
public java.util.concurrent.TimeUnit getDurationUnit()
public GraphiteConfig durationUnit(java.util.concurrent.TimeUnit durationUnit)
durationUnit
- a unit of timethis