Class MetricsRequest
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<InputStreamResponse>
org.apache.solr.client.solrj.request.MetricsRequest
- All Implemented Interfaces:
Serializable
Request to V1 "/admin/metrics" or V2 "/metrics"
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType -
Field Summary
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS -
Constructor Summary
ConstructorsConstructorDescriptionRequest to "/admin/metrics" by default, without paramsMetricsRequest(String path) MetricsRequest(String path, SolrParams params) MetricsRequest(SolrParams params) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamResponsecreateResponse(NamedList<Object> namedList) Create a new SolrResponse to hold the response from the server.Indicates which API version this request will makeThe parameters for this request; never null.Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getRequestType, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, requiresCollection, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
MetricsRequest
public MetricsRequest()Request to "/admin/metrics" by default, without params -
MetricsRequest
- Parameters:
path- the HTTP path to use for this request. Supports V1 "/admin/metrics" (default) or V2 "/metrics"
-
MetricsRequest
- Parameters:
params- the Solr parameters to use for this request.
-
MetricsRequest
- Parameters:
params- the Solr parameters to use for this request.
-
-
Method Details
-
getParams
Description copied from class:SolrRequestThe parameters for this request; never null. The runtime type may be mutable but modifications may not affect thisSolrRequestinstance, as it may return a new instance here every time. If the subclass specifies the response type asModifiableSolrParams, then one can expect it to change this request. If the subclass has a setter then one can expect this method to return the value set.- Specified by:
getParamsin classSolrRequest<InputStreamResponse>
-
createResponse
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server. If the response extendsSolrResponse, then there's no need to use the arguments, asSolrResponse.setResponse(NamedList)will be called right after this method.- Specified by:
createResponsein classSolrRequest<InputStreamResponse>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-
getApiVersion
Description copied from class:SolrRequestIndicates which API version this request will makeDefaults implementation returns 'V1'.
- Overrides:
getApiVersionin classSolrRequest<InputStreamResponse>
-