Class SolrJettyTestBase

    • Field Detail

      • jetty

        public static org.apache.solr.client.solrj.embedded.JettySolrRunner jetty
      • port

        public static int port
      • client

        public static org.apache.solr.client.solrj.SolrClient client
      • context

        public static String context
    • Constructor Detail

      • SolrJettyTestBase

        public SolrJettyTestBase()
    • Method Detail

      • beforeSolrJettyTestBase

        public static void beforeSolrJettyTestBase()
                                            throws Exception
        Throws:
        Exception
      • createAndStartJetty

        public static org.apache.solr.client.solrj.embedded.JettySolrRunner createAndStartJetty​(String solrHome,
                                                                                                String configFile,
                                                                                                String schemaFile,
                                                                                                String context,
                                                                                                boolean stopAtShutdown,
                                                                                                SortedMap<org.eclipse.jetty.servlet.ServletHolder,​String> extraServlets)
                                                                                         throws Exception
        Throws:
        Exception
      • createAndStartJetty

        public static org.apache.solr.client.solrj.embedded.JettySolrRunner createAndStartJetty​(String solrHome,
                                                                                                String configFile,
                                                                                                String context)
                                                                                         throws Exception
        Throws:
        Exception
      • createAndStartJetty

        public static org.apache.solr.client.solrj.embedded.JettySolrRunner createAndStartJetty​(String solrHome,
                                                                                                org.apache.solr.client.solrj.embedded.JettyConfig jettyConfig)
                                                                                         throws Exception
        Throws:
        Exception
      • createAndStartJetty

        public static org.apache.solr.client.solrj.embedded.JettySolrRunner createAndStartJetty​(String solrHome)
                                                                                         throws Exception
        Throws:
        Exception
      • createAndStartJetty

        public static org.apache.solr.client.solrj.embedded.JettySolrRunner createAndStartJetty​(String solrHome,
                                                                                                Properties nodeProperties,
                                                                                                org.apache.solr.client.solrj.embedded.JettyConfig jettyConfig)
                                                                                         throws Exception
        Throws:
        Exception
      • afterSolrJettyTestBase

        public static void afterSolrJettyTestBase()
                                           throws Exception
        Throws:
        Exception
      • getSolrClient

        public org.apache.solr.client.solrj.SolrClient getSolrClient()
      • createNewSolrClient

        public org.apache.solr.client.solrj.SolrClient createNewSolrClient()
        Create a new solr client. If createJetty was called, an http implementation will be created, otherwise an embedded implementation will be created. Subclasses should override for other options.
      • cleanUpJettyHome

        public static void cleanUpJettyHome​(File solrHome)
                                     throws Exception
        Throws:
        Exception
      • legacyExampleCollection1SolrHome

        public static String legacyExampleCollection1SolrHome()