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
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
|
Collection<ContentStream> |
getContentStreams() |
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, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback
public Collection<ContentStream> getContentStreams()
getContentStreams
in class SolrRequest<SolrPingResponse>
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.