org.apache.solr.client.solrj.request
public class SolrPing extends SolrRequest
SolrServer
.
To use this class, the solrconfig.xml for the relevant core must include the
request handler for /admin/ping
.SolrRequest.METHOD
Constructor and Description |
---|
SolrPing()
Create a new SolrPing object.
|
Modifier and Type | Method and Description |
---|---|
Collection<ContentStream> |
getContentStreams() |
ModifiableSolrParams |
getParams() |
SolrPingResponse |
process(SolrServer server) |
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.
|
getMethod, getPath, getResponseParser, getStreamingResponseCallback, setMethod, setPath, setResponseParser, setStreamingResponseCallback
public Collection<ContentStream> getContentStreams()
getContentStreams
in class SolrRequest
public ModifiableSolrParams getParams()
getParams
in class SolrRequest
public SolrPingResponse process(SolrServer server) throws SolrServerException, IOException
process
in class SolrRequest
SolrServerException
IOException
public SolrPing removeAction()
SolrPing#setActionPing()
. For Solr server version 4.0
and later.public SolrPing setActionDisable()
public SolrPing setActionEnable()
public SolrPing setActionPing()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.