(String[] args)
| 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 | } |