For IntelliJ IDEA,
Android Studio or Eclipse



private void myMethod () {}
@Override public String execute(Cassandra.Client cassandra) throws HectorException { try { return cassandra.describe_version(); } catch (Exception e) { throw xtrans.translate(e); } } };
@Override public String describe_version() throws TException { return client.describe_version(); }
@RequestMapping(value="/info/", method=RequestMethod.GET) public void showInfo(ModelMap model) throws Exception { Client client = clientProvider.getThriftClient(); model.put("clusterName", client.describe_cluster_name()); model.put("version", client.describe_version()); /* NodeProbe probe = clientProvider.getProbe(); model.put("liveNodes", probe.getLiveNodes()); model.put("unreachableNodes", probe.getUnreachableNodes()); model.put("uptime", getUptimeString(probe.getUptime())); model.put("token", probe.getToken()); */ model.put("menu_info", Boolean.TRUE); }
@Override public boolean validateObject(String key, CTConnection c) { Config curCfg = cfgRef.get(); boolean isSameConfig = c.getConfig().equals(curCfg); if (log.isDebugEnabled()) { if (isSameConfig) { log.trace("Validated {} by configuration {}", c, curCfg); } else { log.trace("Rejected {}; current config is {}; rejected connection config is {}", c, curCfg, c.getConfig()); } } boolean isOpen = c.isOpen(); try { c.getClient().describe_version(); } catch (TException e) { isOpen = false; } return isSameConfig && isOpen; }
private void executeShowVersion() throws TException { if (!CliMain.isConnected()) return; sessionState.out.println(thriftClient.describe_version()); }
@Override public String execute(Cassandra.Client cassandra) throws HectorException { try { return cassandra.describe_version(); } catch (Exception e) { throw xtrans.translate(e); } } };
@Override public String describe_version() throws TException { return client.describe_version(); }
@Override public String internalExecute(Client client, ConnectionContext state) throws Exception { return client.describe_version(); } }, config.getRetryPolicy().duplicate()).getResult();
@Override public String execute(Cassandra.Client cassandra) throws HectorException { try { return cassandra.describe_version(); } catch (Exception e) { throw xtrans.translate(e); } } };
@Override public String describe_version() throws TException { return client.describe_version(); }