Package org.apache.solr.api
Class CoordinatorV2HttpSolrCall
- java.lang.Object
-
- org.apache.solr.servlet.HttpSolrCall
-
- org.apache.solr.api.V2HttpCall
-
- org.apache.solr.api.CoordinatorV2HttpSolrCall
-
public class CoordinatorV2HttpSolrCall extends V2HttpCall
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.api.V2HttpCall
V2HttpCall.CompositeApi
-
-
Field Summary
-
Fields inherited from class org.apache.solr.servlet.HttpSolrCall
action, collectionsList, config, core, cores, coreUrl, handler, INTERNAL_REQUEST_COUNT, invalidStates, origCorename, ORIGINAL_USER_PRINCIPAL_HEADER, path, queryParams, req, requestType, response, retry, solrDispatchFilter, solrReq
-
-
Constructor Summary
Constructors Constructor Description CoordinatorV2HttpSolrCall(CoordinatorHttpSolrCall.Factory factory, SolrDispatchFilter solrDispatchFilter, CoreContainer cc, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean retry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SolrCore
getCoreByCollection(String collectionName, boolean isPreferLeader)
Retrieves a SolrCore instance associated with the specified collection name, with an option to prefer leader replicas.protected void
init()
-
Methods inherited from class org.apache.solr.api.V2HttpCall
_getHandler, executeCoreRequest, getApiInfo, getPathSegments, getSpec, getUrlParts, getValidators, handleAdmin, handleAdminOrRemoteRequest, parseRequest, populateTracingSpan, writeResponse
-
Methods inherited from class org.apache.solr.servlet.HttpSolrCall
addCollectionParamIfNeeded, autoCreateSystemColl, call, extractHandlerFromURLPath, extractRemotePath, getCollectionsList, getCommands, getCore, getCoreOrColName, getPath, getQueryParams, getRemoteCoreUrl, getReq, getResponseWriter, getSpan, logAndFlushAdminRequest, resolveCollectionListOrAlias, resolveDocCollection, sendError, sendError, sendRemoteQuery, shouldAudit, shouldAudit, shouldAudit, shouldAudit
-
-
-
-
Constructor Detail
-
CoordinatorV2HttpSolrCall
public CoordinatorV2HttpSolrCall(CoordinatorHttpSolrCall.Factory factory, SolrDispatchFilter solrDispatchFilter, CoreContainer cc, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean retry)
-
-
Method Detail
-
getCoreByCollection
protected SolrCore getCoreByCollection(String collectionName, boolean isPreferLeader)
Description copied from class:HttpSolrCall
Retrieves a SolrCore instance associated with the specified collection name, with an option to prefer leader replicas. Makes a call toHttpSolrCall.resolveDocCollection(java.lang.String)
which make an attempt to force update collection if it is not found in local cluster state- Overrides:
getCoreByCollection
in classHttpSolrCall
-
init
protected void init() throws Exception
- Overrides:
init
in classV2HttpCall
- Throws:
Exception
-
-