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

Method waitForCompletion

src/java/org/apache/nutch/util/NutchJob.java:112–124  ·  view source on GitHub ↗
(boolean verbose)

Source from the content-addressed store, hash-verified

110 }
111
112 @Override
113 public boolean waitForCompletion(boolean verbose) throws IOException,
114 InterruptedException, ClassNotFoundException {
115 boolean succeeded = super.waitForCompletion(verbose);
116 if (!succeeded) {
117 // check if we want to fail whenever a job fails. (expert setting)
118 if (getConfiguration().getBoolean("fail.on.job.failure", true)) {
119 throw new RuntimeException("job failed: " + "name=" + getJobName()
120 + ", jobid=" + getJobID());
121 }
122 }
123 return succeeded;
124 }
125
126 public static boolean shouldProcess(CharSequence mark, Utf8 batchId) {
127 if (mark == null) {

Callers 13

updateHostsMethod · 0.95
runMethod · 0.80
injectMethod · 0.80
runMethod · 0.80
runMethod · 0.80
dedupMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
processDumpJobMethod · 0.80
runMethod · 0.80

Calls 1

getConfigurationMethod · 0.45

Tested by

no test coverage detected