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
-
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, path, queryParams, req, requestType, response, retry, solrDispatchFilter, solrReq -
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorV2HttpSolrCall(CoordinatorHttpSolrCall.Factory factory, SolrDispatchFilter solrDispatchFilter, CoreContainer cc, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean retry) -
Method Summary
Modifier and TypeMethodDescriptionprotected SolrCoregetCoreByCollection(String collectionName, boolean isPreferLeader) Retrieves a SolrCore instance associated with the specified collection name, with an option to prefer leader replicas.protected voidinit()Methods inherited from class org.apache.solr.api.V2HttpCall
_getHandler, executeCoreRequest, getApiInfo, getPathSegments, getSpec, getUrlParts, getValidators, handleAdmin, handleAdminOrRemoteRequest, parseRequest, populateTracingSpan, writeResponseMethods inherited from class org.apache.solr.servlet.HttpSolrCall
addCollectionParamIfNeeded, call, extractHandlerFromURLPath, extractRemotePath, getCollectionsList, getCommands, getCore, getCoreOrColName, getPath, getQueryParams, getRemoteCoreUrl, getReq, getResponseWriter, getSpan, getUserAgentSolrVersion, logAndFlushAdminRequest, normalizeAndSetPath, resolveCollectionListOrAlias, resolveDocCollection, sendError, sendError, sendRemoteProxy, shouldAudit, shouldAudit, shouldAudit, shouldAudit
-
Constructor Details
-
CoordinatorV2HttpSolrCall
public CoordinatorV2HttpSolrCall(CoordinatorHttpSolrCall.Factory factory, SolrDispatchFilter solrDispatchFilter, CoreContainer cc, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean retry)
-
-
Method Details
-
getCoreByCollection
Description copied from class:HttpSolrCallRetrieves 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:
getCoreByCollectionin classHttpSolrCall
-
init
- Overrides:
initin classV2HttpCall- Throws:
Exception
-