Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest

        org.apache.solr.client.solrj.SolrRequest.METHOD, org.apache.solr.client.solrj.SolrRequest.SolrClientContext, org.apache.solr.client.solrj.SolrRequest.SolrRequestType
    • Field Summary

      • Fields inherited from class org.apache.solr.client.solrj.SolrRequest

        SUPPORTED_METHODS, useBinaryV2, usev2
    • Constructor Summary

      Constructors 
      Constructor Description
      SolrPing()
      Create a new SolrPing object.
      SolrPing​(java.lang.String url)  
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolrPing

        public SolrPing()
        Create a new SolrPing object.
      • SolrPing

        public SolrPing​(java.lang.String url)
    • Method Detail

      • getContentStreams

        public java.util.Collection<org.apache.solr.common.util.ContentStream> getContentStreams()
        Overrides:
        getContentStreams in class org.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 class org.apache.solr.client.solrj.SolrRequest
      • getParams

        public org.apache.solr.common.params.ModifiableSolrParams getParams()
        Specified by:
        getParams in class org.apache.solr.client.solrj.SolrRequest
      • removeAction

        public HttpPoster.SolrPing removeAction()
        Remove the action parameter from this request. This will result in the same behavior as SolrPing#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 class org.apache.solr.client.solrj.SolrRequest