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

Method run

src/java/org/apache/nutch/host/HostDbReader.java:79–94  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

77 }
78
79 public int run(String[] args) throws Exception {
80 if (args.length > 1) {
81 System.err.println("Usage: HostDBReader [key]");
82 return -1;
83 }
84 try {
85 String key = null;
86 if (args.length == 1)
87 key = args[0];
88 read(key);
89 return 0;
90 } catch (Exception e) {
91 LOG.error("HostDBReader: " + StringUtils.stringifyException(e));
92 return -1;
93 }
94 }
95
96}

Callers 1

mainMethod · 0.45

Calls 2

readMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected