Starts the Nutch server printing some logging to the log file.
()
| 297 | * |
| 298 | */ |
| 299 | public void start() { |
| 300 | LOG.info("Starting NutchServer on port: {} with logging level: {} ...", |
| 301 | port, logLevel); |
| 302 | try { |
| 303 | component.start(); |
| 304 | } catch (Exception e) { |
| 305 | throw new IllegalStateException("Cannot start server!", e); |
| 306 | } |
| 307 | LOG.info("Started NutchServer on port {}", port); |
| 308 | running = true; |
| 309 | started = System.currentTimeMillis(); |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * Safety and convenience method to determine whether or not it is safe to |
no outgoing calls