Codota Logo
Cluster$Manager.submitSchemaRefresh
Code IndexAdd Codota to your IDE (free)

How to use
submitSchemaRefresh
method
in
com.datastax.driver.core.Cluster$Manager

Best Java code snippets using com.datastax.driver.core.Cluster$Manager.submitSchemaRefresh (Showing top 17 results out of 315)

  • Common ways to obtain Cluster$Manager
private void myMethod () {
Cluster$Manager c =
  • Codota IconCluster cluster;String str;List list;Configuration configuration;new Manager(cluster, str, list, configuration)
  • Smart code suggestions by Codota
}
origin: com.datastax.cassandra/cassandra-driver-core

     "Asked to rebuild %s %s.%s but I don't know keyspace %s",
     targetType, targetKeyspace, targetName, targetKeyspace));
 metadata.cluster.submitSchemaRefresh(null, null, null, null);
} else {
 switch (targetType) {
origin: com.datastax.cassandra/cassandra-driver-core

case CREATED:
case UPDATED:
 submitSchemaRefresh(
   scc.targetType, scc.targetKeyspace, scc.targetName, scc.targetSignature);
 break;
origin: com.datastax.cassandra/cassandra-driver-core

if (refreshSchema) {
 schemaReady =
   submitSchemaRefresh(targetType, targetKeyspace, targetName, targetSignature);
origin: com.datastax.cassandra/cassandra-driver-core

private static void waitFor(
  String node, Cluster cluster, int timeoutSeconds, boolean waitForDown) {
 if (waitForDown) logger.debug("Waiting for node to leave: {}", node);
 else logger.debug("Waiting for upcoming node: {}", node);
 // In the case where the we've killed the last node in the cluster, if we haven't
 // tried doing an actual query, the driver won't realize that last node is dead until
 // keep alive kicks in, but that's a fairly long time. So we cheat and trigger a force
 // the detection by forcing a request.
 if (waitForDown)
  Futures.getUnchecked(cluster.manager.submitSchemaRefresh(null, null, null, null));
 if (waitForDown) {
  check()
    .every(1, SECONDS)
    .before(timeoutSeconds, SECONDS)
    .that(new HostIsDown(cluster, node))
    .becomesTrue();
 } else {
  check()
    .every(1, SECONDS)
    .before(timeoutSeconds, SECONDS)
    .that(new HostIsUp(cluster, node))
    .becomesTrue();
 }
}
origin: com.datastax.dse/dse-java-driver-core

private static void waitFor(
  String node, Cluster cluster, int timeoutSeconds, boolean waitForDown) {
 if (waitForDown) logger.debug("Waiting for node to leave: {}", node);
 else logger.debug("Waiting for upcoming node: {}", node);
 // In the case where the we've killed the last node in the cluster, if we haven't
 // tried doing an actual query, the driver won't realize that last node is dead until
 // keep alive kicks in, but that's a fairly long time. So we cheat and trigger a force
 // the detection by forcing a request.
 if (waitForDown)
  Futures.getUnchecked(cluster.manager.submitSchemaRefresh(null, null, null, null));
 if (waitForDown) {
  check()
    .every(1, SECONDS)
    .before(timeoutSeconds, SECONDS)
    .that(new HostIsDown(cluster, node))
    .becomesTrue();
 } else {
  check()
    .every(1, SECONDS)
    .before(timeoutSeconds, SECONDS)
    .that(new HostIsUp(cluster, node))
    .becomesTrue();
 }
}
origin: com.yugabyte/cassandra-driver-core

schemaReady = submitSchemaRefresh(targetType, targetKeyspace, targetName, targetSignature);
origin: io.prestosql.cassandra/cassandra-driver

schemaReady = submitSchemaRefresh(targetType, targetKeyspace, targetName, targetSignature);
origin: com.stratio.cassandra/cassandra-driver-core

  @Override
  public void run() {
    try {
      // Before refreshing the schema, wait for schema agreement so
      // that querying a table just after having created it don't fail.
      if (!ControlConnection.waitForSchemaAgreement(connection, Cluster.Manager.this))
        logger.warn("No schema agreement from live replicas after {} ms. The schema may not be up to date on some nodes.", ControlConnection.MAX_SCHEMA_AGREEMENT_WAIT_MS);
      ControlConnection.refreshSchema(connection, keyspace, table, Cluster.Manager.this);
    } catch (Exception e) {
      logger.error("Error during schema refresh ({}). The schema from Cluster.getMetadata() might appear stale. Asynchronously submitting job to fix.", e.getMessage());
      submitSchemaRefresh(keyspace, table);
    } finally {
      // Always sets the result
      future.setResult(rs);
    }
  }
});
origin: com.facebook.presto.cassandra/cassandra-driver

  logger.info(String.format("Asked to rebuild %s %s.%s but I don't know keyspace %s",
      targetType, targetKeyspace, targetName, targetKeyspace));
  metadata.cluster.submitSchemaRefresh(null, null, null, null);
} else {
  switch (targetType) {
origin: com.stratio.cassandra/cassandra-driver-core

cluster.submitSchemaRefresh(null, null);
return;
origin: io.prestosql.cassandra/cassandra-driver

  logger.info(String.format("Asked to rebuild %s %s.%s but I don't know keyspace %s",
      targetType, targetKeyspace, targetName, targetKeyspace));
  metadata.cluster.submitSchemaRefresh(null, null, null, null);
} else {
  switch (targetType) {
origin: com.yugabyte/cassandra-driver-core

  logger.info(String.format("Asked to rebuild %s %s.%s but I don't know keyspace %s",
      targetType, targetKeyspace, targetName, targetKeyspace));
  metadata.cluster.submitSchemaRefresh(null, null, null, null);
} else {
  switch (targetType) {
origin: com.facebook.presto.cassandra/cassandra-driver

case CREATED:
case UPDATED:
  submitSchemaRefresh(scc.targetType, scc.targetKeyspace, scc.targetName, scc.targetSignature);
  break;
case DROPPED:
origin: com.stratio.cassandra/cassandra-driver-core

case CREATED:
  if (scc.table.isEmpty())
    submitSchemaRefresh(null, null);
  else
    submitSchemaRefresh(scc.keyspace, null);
  break;
case DROPPED:
  if (scc.table.isEmpty())
    submitSchemaRefresh(null, null);
  else
    submitSchemaRefresh(scc.keyspace, null);
  break;
case UPDATED:
  if (scc.table.isEmpty())
    submitSchemaRefresh(scc.keyspace, null);
  else
    submitSchemaRefresh(scc.keyspace, scc.table);
  break;
origin: io.prestosql.cassandra/cassandra-driver

case CREATED:
case UPDATED:
  submitSchemaRefresh(scc.targetType, scc.targetKeyspace, scc.targetName, scc.targetSignature);
  break;
case DROPPED:
origin: com.yugabyte/cassandra-driver-core

case CREATED:
case UPDATED:
  submitSchemaRefresh(scc.targetType, scc.targetKeyspace, scc.targetName, scc.targetSignature);
  break;
case DROPPED:
origin: com.facebook.presto.cassandra/cassandra-driver

schemaReady = submitSchemaRefresh(targetType, targetKeyspace, targetName, targetSignature);
com.datastax.driver.coreCluster$ManagersubmitSchemaRefresh

Popular methods of Cluster$Manager

  • loadBalancingPolicy
  • triggerOnDown
  • isClosed
  • submitNodeListRefresh
  • <init>
  • addPrepared
  • close
  • ensurePoolsSizing
  • init
  • logUnsupportedVersionProtocol
  • prepareAllQueries
  • protocolVersion
  • prepareAllQueries,
  • protocolVersion,
  • reconnectionPolicy,
  • refreshConnectedHosts,
  • refreshSchemaAndSignal,
  • removeHost,
  • translateAddress,
  • triggerOnAdd,
  • triggerOnRemove

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now