public class JmxMonitoredMap<K,V> extends ConcurrentHashMap<String,SolrInfoMBean>
Responsible for finding (or creating) a MBeanServer from given configuration and registering all SolrInfoMBean objects with JMX.
Please see http://wiki.apache.org/solr/SolrJmx for instructions on usage and configuration
SolrConfig.JmxConfiguration
,
Serialized FormModifier and Type | Class and Description |
---|---|
static interface |
JmxMonitoredMap.JmxAugmentedSolrInfoMBean
SolrInfoMBean that provides JMX-specific statistics.
|
ConcurrentHashMap.KeySetView<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JmxMonitoredMap(String coreName,
String coreHashCode,
SolrConfig.JmxConfiguration jmxConfig) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the map and unregisters all SolrInfoMBeans in the map from
MBeanServer
|
MBeanServer |
getServer()
For test verification
|
SolrInfoMBean |
put(String key,
SolrInfoMBean infoBean)
Adds the SolrInfoMBean to the map and registers the given SolrInfoMBean
instance with the MBeanServer defined for this core.
|
SolrInfoMBean |
remove(Object key)
Removes the SolrInfoMBean object at the given key and unregisters it from
MBeanServer
|
compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
clone
public JmxMonitoredMap(String coreName, String coreHashCode, SolrConfig.JmxConfiguration jmxConfig)
public void clear()
clear
in interface Map<String,SolrInfoMBean>
clear
in class ConcurrentHashMap<String,SolrInfoMBean>
public SolrInfoMBean put(String key, SolrInfoMBean infoBean)
put
in interface Map<String,SolrInfoMBean>
put
in class ConcurrentHashMap<String,SolrInfoMBean>
key
- the JMX type name for this SolrInfoMBeaninfoBean
- the SolrInfoMBean instance to be registeredpublic SolrInfoMBean remove(Object key)
remove
in interface Map<String,SolrInfoMBean>
remove
in class ConcurrentHashMap<String,SolrInfoMBean>
key
- the JMX type name for this SolrInfoMBeanpublic MBeanServer getServer()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.