@Override public void run() { if (isNotEmpty(username)) { if (isNotEmpty(passwordFilePath)) password = readUserPasswordFromFile(username, passwordFilePath); if (isEmpty(password)) password = promptAndReadPassword(); } try (NodeProbe probe = connect()) { execute(probe); if (probe.isFailed()) throw new RuntimeException("nodetool failed, check server logs"); } catch (IOException e) { throw new RuntimeException("Error while closing JMX connection", e); } }
@Override public void run() { if (isNotEmpty(username)) { if (isNotEmpty(passwordFilePath)) password = readUserPasswordFromFile(username, passwordFilePath); if (isEmpty(password)) password = promptAndReadPassword(); } try (NodeProbe probe = connect()) { execute(probe); if (probe.isFailed()) throw new RuntimeException("nodetool failed, check server logs"); } catch (IOException e) { throw new RuntimeException("Error while closing JMX connection", e); } }
@Override public void run() { if (isNotEmpty(username)) { if (isNotEmpty(passwordFilePath)) password = readUserPasswordFromFile(username, passwordFilePath); if (isEmpty(password)) password = promptAndReadPassword(); } try (NodeProbe probe = connect()) { execute(probe); if (probe.isFailed()) throw new RuntimeException("nodetool failed, check server logs"); } catch (IOException e) { throw new RuntimeException("Error while closing JMX connection", e); } }
@Override public void run() { if (isNotEmpty(username)) { if (isNotEmpty(passwordFilePath)) password = readUserPasswordFromFile(username, passwordFilePath); if (isEmpty(password)) password = promptAndReadPassword(); } try (NodeProbe probe = connect()) { execute(probe); if (probe.isFailed()) throw new RuntimeException("nodetool failed, check server logs"); } catch (IOException e) { throw new RuntimeException("Error while closing JMX connection", e); } }
protected List<String> parseOptionalKeyspace(List<String> cmdArgs, NodeProbe nodeProbe) { return parseOptionalKeyspace(cmdArgs, nodeProbe, KeyspaceSet.ALL); }
protected List<String> parseOptionalKeyspace(List<String> cmdArgs, NodeProbe nodeProbe) { return parseOptionalKeyspace(cmdArgs, nodeProbe, KeyspaceSet.ALL); }
protected List<String> parseOptionalKeyspace(List<String> cmdArgs, NodeProbe nodeProbe) { return parseOptionalKeyspace(cmdArgs, nodeProbe, KeyspaceSet.ALL); }