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

Method main

src/java/org/apache/nutch/net/URLFilterChecker.java:108–134  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

106 }
107
108 public static void main(String[] args) throws Exception {
109
110 String usage = "Usage: URLFilterChecker (-filterName filterName | -allCombined)";
111
112 if (args.length == 0) {
113 System.err.println(usage);
114 System.exit(-1);
115 }
116
117 String filterName = null;
118 if (args[0].equals("-filterName")) {
119 if (args.length != 2) {
120 System.err.println(usage);
121 System.exit(-1);
122 }
123 filterName = args[1];
124 }
125
126 URLFilterChecker checker = new URLFilterChecker(NutchConfiguration.create());
127 if (filterName != null) {
128 checker.checkOne(filterName);
129 } else {
130 checker.checkAll();
131 }
132
133 System.exit(0);
134 }
135}

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
checkOneMethod · 0.95
checkAllMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected