Package org.apache.nutch.util

Examples of org.apache.nutch.util.NutchJobConf


    }

    public void testRepositoryCache() {
      Configuration config = NutchConfiguration.create();
      PluginRepository repo = PluginRepository.get(config);
      JobConf job = new NutchJobConf(config);
      PluginRepository repo1 = PluginRepository.get(job);
      assertTrue(repo == repo1);
      // now construct a config without UUID
      config = new Configuration();
      config.addResource("nutch-default.xml");
      config.addResource("nutch-site.xml");
      repo = PluginRepository.get(config);
      job = new NutchJobConf(config);
      repo1 = PluginRepository.get(job);
      assertTrue(repo1 != repo);
    }
View Full Code Here


    @Test
    public void testRepositoryCache() {
      Configuration config = NutchConfiguration.create();
      PluginRepository repo = PluginRepository.get(config);
      JobConf job = new NutchJobConf(config);
      PluginRepository repo1 = PluginRepository.get(job);
      assertTrue(repo == repo1);
      // now construct a config without UUID
      config = new Configuration();
      config.addResource("nutch-default.xml");
      config.addResource("nutch-site.xml");
      repo = PluginRepository.get(config);
      job = new NutchJobConf(config);
      repo1 = PluginRepository.get(job);
      assertTrue(repo1 != repo);
    }
View Full Code Here

TOP

Related Classes of org.apache.nutch.util.NutchJobConf

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.