public class Metrics extends SolrCacheBase implements SolrInfoMBean, SolrMetricProducer
SolrInfoMBean
that provides metrics on block cache operations.SolrCacheBase.AutoWarmCountRef
SolrInfoMBean.Category, SolrInfoMBean.Group
Modifier and Type | Field and Description |
---|---|
AtomicLong |
blockCacheEviction |
AtomicLong |
blockCacheHit |
AtomicLong |
blockCacheMiss |
AtomicLong |
blockCacheSize |
AtomicLong |
blockCacheStoreFail |
AtomicLong |
blockCacheStoreFail_last |
AtomicLong |
shardBuffercacheAllocate |
AtomicLong |
shardBuffercacheLost |
autowarm, regenerator
Constructor and Description |
---|
Metrics() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Simple one or two line description
|
URL[] |
getDocs()
Documentation URL list.
|
String |
getName()
Simple common usage name, e.g.
|
String |
getSource()
CVS Source, SVN Source, etc
|
NamedList<Number> |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
void |
initializeMetrics(SolrMetricManager manager,
String registry,
String scope)
Initializes metrics specific to this producer
|
calcHitRatio, getAutowarmDescription, getCategory, getState, getVersion, init, isAutowarmingOn, name, setState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCategory, getVersion
public AtomicLong blockCacheSize
public AtomicLong blockCacheHit
public AtomicLong blockCacheMiss
public AtomicLong blockCacheEviction
public AtomicLong blockCacheStoreFail
public AtomicLong blockCacheStoreFail_last
public AtomicLong shardBuffercacheAllocate
public AtomicLong shardBuffercacheLost
public NamedList<Number> getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean
public void initializeMetrics(SolrMetricManager manager, String registry, String scope)
SolrMetricProducer
initializeMetrics
in interface SolrMetricProducer
manager
- an instance of SolrMetricManager
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 contextspublic String getName()
SolrInfoMBean
getName
in interface SolrInfoMBean
public String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
public String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
public URL[] getDocs()
SolrInfoMBean
Suggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs
in interface SolrInfoMBean
getDocs
in class SolrCacheBase
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.