Package org.apache.ignite.spi.metric
Interface MetricExporterSpi
- 
- All Superinterfaces:
- IgniteSpi
 - All Known Implementing Classes:
- JmxMetricExporterSpi,- LogExporterSpi,- NoopMetricExporterSpi,- OpenCensusMetricExporterSpi,- org.apache.ignite.internal.processors.metric.PushMetricsExporterAdapter
 
 public interface MetricExporterSpi extends IgniteSpi Exporter of metric information to the external recipient. Expected, that each implementation would support some specific protocol. Implementation of this Spi should work by pull paradigm. So after start SPI should respond to some incoming request. HTTP servlet or JMX bean are good examples of expected implementations.Ignite provides the following MetricExporterSpiimplementation:- JmxMetricExporterSpi
- LogExporterSpi
- org.apache.ignite.internal.processors.metric.sql.SqlViewMetricExporterSpi
- org.apache.ignite.spi.metric.opencensus.OpenCensusMetricExporterSpi
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetExportFilter(Predicate<ReadOnlyMetricRegistry> filter)Sets export filter.voidsetMetricRegistry(ReadOnlyMetricManager registry)Sets metrics registry that SPI should export.- 
Methods inherited from interface org.apache.ignite.spi.IgniteSpigetName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitialized, spiStart, spiStop
 
- 
 
- 
- 
- 
Method Detail- 
setMetricRegistryvoid setMetricRegistry(ReadOnlyMetricManager registry) Sets metrics registry that SPI should export. This method called beforeIgniteSpi.spiStart(String).- Parameters:
- registry- Metric registry.
 
 - 
setExportFiltervoid setExportFilter(Predicate<ReadOnlyMetricRegistry> filter) Sets export filter. Metric registry that not satisfyfiltershouldn't be exported.- Parameters:
- filter- Filter.
- See Also:
- RegexpMetricFilter
 
 
- 
 
-