public class SolrGangliaReporter extends FilteringSolrMetricReporter
filters
enabled, metricManager, period, pluginInfo, registryName
Constructor and Description |
---|
SolrGangliaReporter(SolrMetricManager metricManager,
String registryName)
Create a Ganglia 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 |
setMulticast(boolean multicast) |
void |
setPort(int port) |
void |
setPrefix(String prefix) |
void |
setTesting(boolean testing) |
protected void |
validate()
Validates that the reporter has been correctly configured.
|
newMetricFilter, setFilter, setFilter
getPeriod, getPluginInfo, init, setEnabled, setPeriod, toString
public SolrGangliaReporter(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 setMulticast(boolean multicast)
public void setTesting(boolean testing)
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-2018 Apache Software Foundation. All Rights Reserved.