public class SolrGraphiteReporter extends FilteringSolrMetricReporter
GraphiteReporter
.filters
enabled, metricManager, period, pluginInfo, registryName
Constructor and Description |
---|
SolrGraphiteReporter(SolrMetricManager metricManager,
String registryName)
Create a Graphite reporter for metrics managed in a named registry.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
doInit()
Reporter initialization implementation.
|
void |
setHost(String host) |
void |
setPickled(boolean pickled) |
void |
setPort(int port) |
void |
setPrefix(String prefix) |
protected void |
validate()
Validates that the reporter has been correctly configured.
|
newMetricFilter, setFilter, setFilter
getPeriod, getPluginInfo, init, setEnabled, setPeriod, toString
public SolrGraphiteReporter(SolrMetricManager metricManager, String registryName)
metricManager
- metric manager instance that manages the selected registryregistryName
- registry to use, one of registries managed by
SolrMetricManager
public void setHost(String host)
public void setPort(int port)
public void setPrefix(String prefix)
public void setPickled(boolean pickled)
protected void doInit()
SolrMetricReporter
doInit
in class SolrMetricReporter
protected void validate() throws IllegalStateException
SolrMetricReporter
validate
in class SolrMetricReporter
IllegalStateException
- if the reporter is not properly configuredpublic void close() throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.