public class SolrPing extends SolrRequest<SolrPingResponse>
SolrClient
.
To use this class, the solrconfig.xml for the relevant core must include the
request handler for /admin/ping
.SolrRequest.METHOD
SUPPORTED_METHODS, useBinaryV2, usev2
Constructor and Description |
---|
SolrPing()
Create a new SolrPing object.
|
Modifier and Type | Method and Description |
---|---|
protected SolrPingResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
ModifiableSolrParams |
getParams() |
SolrPing |
removeAction()
Remove the action parameter from this request.
|
SolrPing |
setActionDisable()
Set the action parameter on this request to enable.
|
SolrPing |
setActionEnable()
Set the action parameter on this request to enable.
|
SolrPing |
setActionPing()
Set the action parameter on this request to ping.
|
getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUseV2
protected SolrPingResponse createResponse(SolrClient client)
SolrRequest
createResponse
in class SolrRequest<SolrPingResponse>
client
- the SolrClient
the request will be sent topublic ModifiableSolrParams getParams()
getParams
in class SolrRequest<SolrPingResponse>
public SolrPing removeAction()
SolrPing#setActionPing()
. For Solr server version 4.0
and later.public SolrPing setActionDisable()
public SolrPing setActionEnable()
public SolrPing setActionPing()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.