(Job job)
| 149 | } |
| 150 | |
| 151 | public Collection<WebPage.Field> getFields(Job job) { |
| 152 | Collection<WebPage.Field> fields = new HashSet<WebPage.Field>(FIELDS); |
| 153 | if (job.getConfiguration().getBoolean(PARSE_KEY, false)) { |
| 154 | ParserJob parserJob = new ParserJob(); |
| 155 | fields.addAll(parserJob.getFields(job)); |
| 156 | } |
| 157 | ProtocolFactory protocolFactory = new ProtocolFactory( |
| 158 | job.getConfiguration()); |
| 159 | fields.addAll(protocolFactory.getFields()); |
| 160 | |
| 161 | return fields; |
| 162 | } |
| 163 | |
| 164 | @Override |
| 165 | public Map<String, Object> run(Map<String, Object> args) throws Exception { |
no test coverage detected