Class SolrGraphiteReporter
- java.lang.Object
-
- org.apache.solr.metrics.SolrMetricReporter
-
- org.apache.solr.metrics.FilteringSolrMetricReporter
-
- org.apache.solr.metrics.reporters.SolrGraphiteReporter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PluginInfoInitialized
public class SolrGraphiteReporter extends FilteringSolrMetricReporter
Metrics reporter that wrapsGraphiteReporter
.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.metrics.FilteringSolrMetricReporter
filters
-
Fields inherited from class org.apache.solr.metrics.SolrMetricReporter
enabled, metricManager, period, pluginInfo, registryName
-
-
Constructor Summary
Constructors Constructor Description SolrGraphiteReporter(SolrMetricManager metricManager, String registryName)
Create a Graphite reporter for metrics managed in a named registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.solr.metrics.FilteringSolrMetricReporter
newMetricFilter, setFilter, setFilter
-
Methods inherited from class org.apache.solr.metrics.SolrMetricReporter
getPeriod, getPluginInfo, init, setEnabled, setPeriod, toString
-
-
-
-
Constructor Detail
-
SolrGraphiteReporter
public SolrGraphiteReporter(SolrMetricManager metricManager, String registryName)
Create a Graphite reporter for metrics managed in a named registry.- Parameters:
metricManager
- metric manager instance that manages the selected registryregistryName
- registry to use, one of registries managed bySolrMetricManager
-
-
Method Detail
-
setHost
public void setHost(String host)
-
setPort
public void setPort(int port)
-
setPrefix
public void setPrefix(String prefix)
-
setPickled
public void setPickled(boolean pickled)
-
doInit
protected void doInit()
Description copied from class:SolrMetricReporter
Reporter initialization implementation.- Specified by:
doInit
in classSolrMetricReporter
-
validate
protected void validate() throws IllegalStateException
Description copied from class:SolrMetricReporter
Validates that the reporter has been correctly configured.- Specified by:
validate
in classSolrMetricReporter
- Throws:
IllegalStateException
- if the reporter is not properly configured
-
close
public void close() throws IOException
- Throws:
IOException
-
-