Class TaskManagementHandler
java.lang.Object
org.apache.solr.handler.RequestHandlerBase
org.apache.solr.handler.component.TaskManagementHandler
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider,SolrCoreAware
- Direct Known Subclasses:
ActiveTasksListHandler,QueryCancellationHandler
public abstract class TaskManagementHandler
extends RequestHandlerBase
implements SolrCoreAware, PermissionNameProvider
Abstract class which serves as the root of all task managing handlers
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetricsNested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.NameNested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Field Summary
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, publishCpuTime, REQUEST_CPU_TIMER_CONTEXT, solrMetricsContext, SOURCE_ATTRFields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, valuesFields inherited from interface org.apache.solr.metrics.SolrMetricProducer
CATEGORY_ATTR, HANDLER_ATTR, NAME_ATTR, OPERATION_ATTR, PLUGIN_NAME_ATTR, RESULT_ATTR, TYPE_ATTRFields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SearchComponent> static ResponseBuilderbuildResponseBuilder(SolrQueryRequest req, SolrQueryResponse rsp, List<SearchComponent> components) voidprotected voidprocessRequest(SolrQueryRequest req, ResponseBuilder rb, Map<String, String> extraParams) Process the actual request.Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getApis, getCategory, getDescription, getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, handleRequestBody, init, initializeMetrics, isInternalShardRequest, processErrorMetricsOnException, processReceivedException, setPluginInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResources, registerV1, registerV2Methods inherited from interface org.apache.solr.security.PermissionNameProvider
getPermissionNameMethods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
Constructor Details
-
TaskManagementHandler
public TaskManagementHandler()
-
-
Method Details
-
inform
- Specified by:
informin interfaceSolrCoreAware
-
processRequest
protected void processRequest(SolrQueryRequest req, ResponseBuilder rb, Map<String, String> extraParams) throws IOExceptionProcess the actual request. extraParams is required for allowing sub handlers to pass in custom parameters to be put in the outgoing shard request- Throws:
IOException
-
buildComponentsList
-
buildResponseBuilder
public static ResponseBuilder buildResponseBuilder(SolrQueryRequest req, SolrQueryResponse rsp, List<SearchComponent> components)
-