Package org.apache.solr.handler.admin
Class MetricsHistoryHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.admin.MetricsHistoryHandler
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
public class MetricsHistoryHandler extends RequestHandlerBase implements PermissionNameProvider, Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricsHistoryHandler.Cmdstatic classMetricsHistoryHandler.Format-
Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.Name
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLLECT_PERIOD_PROPstatic intDEFAULT_COLLECT_PERIODstatic List<String>DEFAULT_COLLECTION_GAUGESstatic List<String>DEFAULT_CORE_COUNTERSstatic List<String>DEFAULT_CORE_GAUGESstatic List<String>DEFAULT_JVM_GAUGESstatic List<String>DEFAULT_NODE_GAUGESstatic StringENABLE_NODES_PROPstatic StringENABLE_PROPstatic StringENABLE_REPLICAS_PROPstatic StringNUM_NODES_KEYstatic StringNUM_REPLICAS_KEYstatic StringNUM_SHARDS_KEYstatic StringSYNC_PERIOD_PROPstatic StringURI_PREFIX-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
appends, defaults, httpCaching, initArgs, invariants, metricManager, registryName
-
Fields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, values
-
Fields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE
-
-
Constructor Summary
Constructors Constructor Description MetricsHistoryHandler(String nodeName, MetricsHandler metricsHandler, SolrClient solrClient, SolrCloudManager cloudManager, Map<String,Object> pluginArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckSystemCollection()voidclose()Collection<Api>getApis()It is possible to support multiple v2 apis by a single requesthandlerStringgetDescription()Simple one or two line descriptionSolrRrdBackendFactorygetFactory()PermissionNameProvider.NamegetPermissionName(AuthorizationContext request)SolrClientgetSolrClient()voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)BooleanregisterV2()Whether this request handler must be made available at the /v2/ pathvoidremoveHistory(String registry)-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getCategory, getInitArgs, getMetricNames, getMetricRegistry, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.api.ApiSupport
registerV1
-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getMetricsSnapshot, registerMetricName
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
initializeMetrics
-
-
-
-
Field Detail
-
NUM_SHARDS_KEY
public static final String NUM_SHARDS_KEY
- See Also:
- Constant Field Values
-
NUM_REPLICAS_KEY
public static final String NUM_REPLICAS_KEY
- See Also:
- Constant Field Values
-
NUM_NODES_KEY
public static final String NUM_NODES_KEY
- See Also:
- Constant Field Values
-
COLLECT_PERIOD_PROP
public static final String COLLECT_PERIOD_PROP
- See Also:
- Constant Field Values
-
SYNC_PERIOD_PROP
public static final String SYNC_PERIOD_PROP
- See Also:
- Constant Field Values
-
ENABLE_PROP
public static final String ENABLE_PROP
- See Also:
- Constant Field Values
-
ENABLE_REPLICAS_PROP
public static final String ENABLE_REPLICAS_PROP
- See Also:
- Constant Field Values
-
ENABLE_NODES_PROP
public static final String ENABLE_NODES_PROP
- See Also:
- Constant Field Values
-
DEFAULT_COLLECT_PERIOD
public static final int DEFAULT_COLLECT_PERIOD
- See Also:
- Constant Field Values
-
URI_PREFIX
public static final String URI_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetricsHistoryHandler
public MetricsHistoryHandler(String nodeName, MetricsHandler metricsHandler, SolrClient solrClient, SolrCloudManager cloudManager, Map<String,Object> pluginArgs)
-
-
Method Detail
-
checkSystemCollection
public void checkSystemCollection()
-
getSolrClient
public SolrClient getSolrClient()
-
removeHistory
public void removeHistory(String registry) throws IOException
- Throws:
IOException
-
getFactory
public SolrRrdBackendFactory getFactory()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classRequestHandlerBase
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
- Specified by:
getPermissionNamein interfacePermissionNameProvider
-
registerV2
public Boolean registerV2()
Description copied from interface:ApiSupportWhether this request handler must be made available at the /v2/ path- Specified by:
registerV2in interfaceApiSupport
-
getApis
public Collection<Api> getApis()
Description copied from interface:ApiSupportIt is possible to support multiple v2 apis by a single requesthandler- Specified by:
getApisin interfaceApiSupport- Overrides:
getApisin classRequestHandlerBase- Returns:
- the list of v2 api implementations
-
-