(CommandLine cli)
| 70 | } |
| 71 | |
| 72 | @Override |
| 73 | public void runImpl(CommandLine cli) throws Exception { |
| 74 | String zkHost = CLIUtils.getZkHost(cli); |
| 75 | String znode = cli.getArgs()[0]; |
| 76 | boolean failOnExists = cli.hasOption(FAIL_ON_EXISTS_OPTION); |
| 77 | |
| 78 | try (SolrZkClient zkClient = CLIUtils.getSolrZkClient(cli, zkHost)) { |
| 79 | echoIfVerbose("\nConnecting to ZooKeeper at " + zkHost + " ..."); |
| 80 | |
| 81 | echo("Creating ZooKeeper path " + znode + " on ZooKeeper at " + zkHost); |
| 82 | zkClient.makePath(znode, failOnExists); |
| 83 | } catch (Exception e) { |
| 84 | log.error("Could not complete mkroot operation for reason: ", e); |
| 85 | throw (e); |
| 86 | } |
| 87 | } |
| 88 | } |
nothing calls this directly
no test coverage detected