public class Metrics extends SolrCacheBase implements SolrInfoMBean, SolrMetricProducer
SolrInfoMBean that provides metrics on block cache operations.SolrCacheBase.AutoWarmCountRefSolrInfoMBean.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, setStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCategory, getVersionpublic 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 SolrInfoMBeanpublic void initializeMetrics(SolrMetricManager manager, String registry, String scope)
SolrMetricProducerinitializeMetrics in interface SolrMetricProducermanager - an instance of SolrMetricManagerregistry - 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()
SolrInfoMBeangetName in interface SolrInfoMBeanpublic String getDescription()
SolrInfoMBeangetDescription in interface SolrInfoMBeanpublic String getSource()
SolrInfoMBeangetSource in interface SolrInfoMBeanpublic URL[] getDocs()
SolrInfoMBeanSuggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs in interface SolrInfoMBeangetDocs in class SolrCacheBaseCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.