MCPcopy Create free account
hub / github.com/apache/nutch / inject

Method inject

src/java/org/apache/nutch/crawl/InjectorJob.java:281–290  ·  view source on GitHub ↗
(Path urlDir)

Source from the content-addressed store, hash-verified

279 }
280
281 public void inject(Path urlDir) throws Exception {
282 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ROOT);
283 long start = System.currentTimeMillis();
284 LOG.info("InjectorJob: starting at " + sdf.format(start));
285 LOG.info("InjectorJob: Injecting urlDir: " + urlDir);
286 run(ToolUtil.toArgMap(Nutch.ARG_SEEDDIR, urlDir));
287 long end = System.currentTimeMillis();
288 LOG.info("Injector: finished at " + sdf.format(end) + ", elapsed: "
289 + TimingUtil.elapsedTime(start, end));
290 }
291
292 @Override
293 public int run(String[] args) throws Exception {

Callers 10

testFetchMethod · 0.95
testReFetchMethod · 0.95
testSitemapFetchMethod · 0.95
testSitemapDetectMethod · 0.95
testSitemapInjectMethod · 0.95
testInjectMethod · 0.95
generateForSitemapMethod · 0.95
benchmarkMethod · 0.95
runMethod · 0.95

Calls 3

runMethod · 0.95
toArgMapMethod · 0.95
elapsedTimeMethod · 0.95

Tested by 8

testFetchMethod · 0.76
testReFetchMethod · 0.76
testSitemapFetchMethod · 0.76
testSitemapDetectMethod · 0.76
testSitemapInjectMethod · 0.76
testInjectMethod · 0.76
generateForSitemapMethod · 0.76