Package org.apache.solr.metrics
Interface SolrMetricProducer
-
- All Known Subinterfaces:
SolrCache<K,V>
- All Known Implementing Classes:
AnalysisRequestHandlerBase
,AutoScalingHandler
,AutoscalingHistoryHandler
,BlobHandler
,BreakIteratorBoundaryScanner
,CdcrRequestHandler
,CdcrUpdateLog
,CollectionsHandler
,ConfigSetsHandler
,ContentStreamHandlerBase
,CoreAdminHandler
,DefaultEncoder
,DirectUpdateHandler2
,DocumentAnalysisRequestHandler
,DumpRequestHandler
,ExportHandler
,FastLRUCache
,FieldAnalysisRequestHandler
,FileFloatSource.ReloadCacheRequestHandler
,GapFragmenter
,GraphHandler
,HdfsDirectoryFactory
,HdfsLocalityReporter
,HdfsUpdateLog
,HighlightingPluginBase
,HtmlEncoder
,HtmlFormatter
,HttpShardHandlerFactory
,InfoHandler
,InstrumentedHttpRequestExecutor
,InstrumentedPoolingHttpClientConnectionManager
,LFUCache
,LoggingHandler
,LRUCache
,LukeRequestHandler
,Metrics
,MetricsCollectorHandler
,MetricsHandler
,MetricsHistoryHandler
,MoreLikeThisHandler
,NotFoundRequestHandler
,PeerSync
,PeerSyncWithLeader
,PingRequestHandler
,PluginInfoHandler
,PropertiesRequestHandler
,PublicKeyHandler
,RealTimeGetHandler
,RegexFragmenter
,ReplicationHandler
,RequestHandlerBase
,SchemaHandler
,ScoreOrderFragmentsBuilder
,SearchHandler
,SecurityConfHandler
,SecurityConfHandlerLocal
,SecurityConfHandlerZk
,SegmentsInfoRequestHandler
,ShowFileRequestHandler
,SimpleBoundaryScanner
,SimpleFragListBuilder
,SimpleFragmentsBuilder
,SingleFragListBuilder
,SolrBoundaryScanner
,SolrConfigHandler
,SolrCore
,SolrFieldCacheBean
,SolrFragmentsBuilder
,SolrIndexSearcher
,SolrInfoMBeanHandler
,SQLHandler
,StandardRequestHandler
,StreamHandler
,SuggestComponent
,SystemInfoHandler
,TaggerRequestHandler
,ThreadDumpHandler
,UpdateLog
,UpdateRequestHandler
,UpdateRequestHandlerApi
,UpdateShardHandler
,WeightedFragListBuilder
,ZookeeperInfoHandler
,ZookeeperStatusHandler
public interface SolrMetricProducer
Used by objects that expose metrics throughSolrMetricManager
.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
initializeMetrics(SolrMetricManager manager, String registry, String scope)
Deprecated.this method doesn't provide enough context to properly manage life-cycle of some metrics (see SOLR-11882).default void
initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)
Initializes metrics specific to this producer.
-
-
-
Method Detail
-
initializeMetrics
default void initializeMetrics(SolrMetricManager manager, String registry, String tag, String scope)
Initializes metrics specific to this producer.Note: for back-compatibility this method by default calls
initializeMetrics(SolrMetricManager, String, String)
.- Parameters:
manager
- an instance ofSolrMetricManager
registry
- registry name where metrics are registeredtag
- symbolic tag that represents a group of related instances that have the same life-cycle. Parent component can use thetag
when callingSolrMetricManager.unregisterGauges(String, String)
to unregister metrics created by this instance of the producer.scope
- scope of the metrics (eg. handler name) to separate metrics of instances of the same component executing in different contexts
-
initializeMetrics
@Deprecated default void initializeMetrics(SolrMetricManager manager, String registry, String scope)
Deprecated.this method doesn't provide enough context to properly manage life-cycle of some metrics (see SOLR-11882). Instead useinitializeMetrics(SolrMetricManager, String, String, String)
.Initializes metrics specific to this producer.Note: for back-compatibility this method has a default no-op implementation.
- Parameters:
manager
- an instance ofSolrMetricManager
registry
- registry name where metrics are registeredscope
- scope of the metrics (eg. handler name) to separate metrics of instances of the same component executing in different contexts
-
-