Class HttpPoster.SolrPing
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest
-
- org.apache.manifoldcf.agents.output.solr.HttpPoster.SolrPing
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- HttpPoster
protected static class HttpPoster.SolrPing extends org.apache.solr.client.solrj.SolrRequest
Special version of ping class where we can control the URL- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.solr.client.solrj.response.SolrPingResponse
createResponse(org.apache.solr.client.solrj.SolrClient client)
java.util.Collection<org.apache.solr.common.util.ContentStream>
getContentStreams()
org.apache.solr.common.params.ModifiableSolrParams
getParams()
java.lang.String
getRequestType()
HttpPoster.SolrPing
removeAction()
Remove the action parameter from this request.HttpPoster.SolrPing
setActionDisable()
Set the action parameter on this request to enable.HttpPoster.SolrPing
setActionEnable()
Set the action parameter on this request to enable.HttpPoster.SolrPing
setActionPing()
Set the action parameter on this request to ping.-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentWriter, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Method Detail
-
getContentStreams
public java.util.Collection<org.apache.solr.common.util.ContentStream> getContentStreams()
- Overrides:
getContentStreams
in classorg.apache.solr.client.solrj.SolrRequest
-
createResponse
protected org.apache.solr.client.solrj.response.SolrPingResponse createResponse(org.apache.solr.client.solrj.SolrClient client)
- Specified by:
createResponse
in classorg.apache.solr.client.solrj.SolrRequest
-
getParams
public org.apache.solr.common.params.ModifiableSolrParams getParams()
- Specified by:
getParams
in classorg.apache.solr.client.solrj.SolrRequest
-
removeAction
public HttpPoster.SolrPing removeAction()
Remove the action parameter from this request. This will result in the same behavior asSolrPing#setActionPing()
. For Solr server version 4.0 and later.- Returns:
- this
-
setActionDisable
public HttpPoster.SolrPing setActionDisable()
Set the action parameter on this request to enable. This will delete the health-check file for the Solr core. For Solr server version 4.0 and later.- Returns:
- this
-
setActionEnable
public HttpPoster.SolrPing setActionEnable()
Set the action parameter on this request to enable. This will create the health-check file for the Solr core. For Solr server version 4.0 and later.- Returns:
- this
-
setActionPing
public HttpPoster.SolrPing setActionPing()
Set the action parameter on this request to ping. This is the same as not including the action at all. For Solr server version 4.0 and later.- Returns:
- this
-
getRequestType
public java.lang.String getRequestType()
- Specified by:
getRequestType
in classorg.apache.solr.client.solrj.SolrRequest
-
-