Cassandra$Client.describe_version
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.cassandra.thrift.Cassandra$Client.describe_version(Showing top 10 results out of 315)

  • Common ways to obtain Cassandra$Client
private void myMethod () {
Cassandra$Client c =
  • TProtocol prot;new Cassandra.Client(prot)
  • Smart code suggestions by Codota
}
origin: org.hectorclient/hector-core

 @Override
 public String execute(Cassandra.Client cassandra) throws HectorException {
  try {
   return cassandra.describe_version();
  } catch (Exception e) {
   throw xtrans.translate(e);
  }
 }
};
origin: me.prettyprint/hector-core

@Override
public String describe_version() throws TException {
 return client.describe_version();
}
origin: suguru/cassandra-webconsole

@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);
}
 
origin: JanusGraph/janusgraph

@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;
}
origin: intuit/wasabi

private void executeShowVersion() throws TException
{
  if (!CliMain.isConnected())
    return;
  sessionState.out.println(thriftClient.describe_version());
}
origin: hector-client/hector

 @Override
 public String execute(Cassandra.Client cassandra) throws HectorException {
  try {
   return cassandra.describe_version();
  } catch (Exception e) {
   throw xtrans.translate(e);
  }
 }
};
origin: org.hectorclient/hector-core

@Override
public String describe_version() throws TException {
 return client.describe_version();
}
origin: com.netflix.astyanax/astyanax-thrift

  @Override
  public String internalExecute(Client client, ConnectionContext state) throws Exception {
    return client.describe_version();
  }
}, config.getRetryPolicy().duplicate()).getResult();
origin: me.prettyprint/hector-core

 @Override
 public String execute(Cassandra.Client cassandra) throws HectorException {
  try {
   return cassandra.describe_version();
  } catch (Exception e) {
   throw xtrans.translate(e);
  }
 }
};
origin: hector-client/hector

@Override
public String describe_version() throws TException {
 return client.describe_version();
}
org.apache.cassandra.thriftCassandra$Clientdescribe_version

Popular methods of Cassandra$Client

  • <init>
  • set_keyspace
  • describe_keyspace
  • system_add_column_family
  • system_add_keyspace
  • login
  • system_drop_column_family
  • batch_mutate
  • get_range_slices
  • system_drop_keyspace
  • describe_ring
  • truncate
  • describe_ring,
  • truncate,
  • describe_keyspaces,
  • execute_cql3_query,
  • describe_cluster_name,
  • describe_partitioner,
  • get_slice,
  • set_cql_version,
  • describe_schema_versions

Popular classes and methods

  • getApplicationContext (Context)
  • startActivity (Activity)
  • putExtra (Intent)
  • FlowLayout (java.awt)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedMap (java.util)
    A Map that further provides a total ordering on its keys. The map is ordered according to the Compar
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)