Package org.apache.solr.handler.admin
Class MetricsHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.admin.MetricsHandler
-
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
public class MetricsHandler extends RequestHandlerBase implements PermissionNameProvider
Request handler to return metrics
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetrics
-
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 StringALLstatic StringCOMPACT_PARAMstatic StringEXPR_PARAMstatic StringGROUP_PARAMstatic StringKEY_PARAMstatic StringPREFIX_PARAMstatic StringPROMETHEUS_METRICS_WTstatic StringPROPERTY_PARAMstatic StringREGEX_PARAMstatic StringREGISTRY_PARAMstatic StringTYPE_PARAM-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, solrMetricsContext
-
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 MetricsHandler(CoreContainer coreContainer)MetricsHandler(SolrMetricManager metricManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrInfoBean.CategorygetCategory()Category of this componentStringgetDescription()Simple one or two line descriptionPermissionNameProvider.NamegetPermissionName(AuthorizationContext request)voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)booleanisEnabled()Set<String>parseRegistries(String[] groupStr, String[] registryStr)-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getApis, getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, isInternalShardRequest, processErrorMetricsOnException, processReceivedException, 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
getJerseyResources, registerV1, registerV2
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
-
-
-
Field Detail
-
COMPACT_PARAM
public static final String COMPACT_PARAM
- See Also:
- Constant Field Values
-
PREFIX_PARAM
public static final String PREFIX_PARAM
- See Also:
- Constant Field Values
-
REGEX_PARAM
public static final String REGEX_PARAM
- See Also:
- Constant Field Values
-
PROPERTY_PARAM
public static final String PROPERTY_PARAM
- See Also:
- Constant Field Values
-
REGISTRY_PARAM
public static final String REGISTRY_PARAM
- See Also:
- Constant Field Values
-
GROUP_PARAM
public static final String GROUP_PARAM
- See Also:
- Constant Field Values
-
KEY_PARAM
public static final String KEY_PARAM
- See Also:
- Constant Field Values
-
EXPR_PARAM
public static final String EXPR_PARAM
- See Also:
- Constant Field Values
-
TYPE_PARAM
public static final String TYPE_PARAM
- See Also:
- Constant Field Values
-
PROMETHEUS_METRICS_WT
public static final String PROMETHEUS_METRICS_WT
- See Also:
- Constant Field Values
-
ALL
public static final String ALL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetricsHandler
public MetricsHandler(CoreContainer coreContainer)
-
MetricsHandler
public MetricsHandler(SolrMetricManager metricManager)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
- Specified by:
getPermissionNamein interfacePermissionNameProvider
-
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
-
getCategory
public SolrInfoBean.Category getCategory()
Description copied from interface:SolrInfoBeanCategory of this component- Specified by:
getCategoryin interfaceSolrInfoBean- Overrides:
getCategoryin classRequestHandlerBase
-
-