Tabnine Logo
Cluster$Manager.submitSchemaRefresh
Code IndexAdd Tabnine 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)

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.yugabyte/cassandra-driver-core

case CREATED:
case UPDATED:
  submitSchemaRefresh(scc.targetType, scc.targetKeyspace, scc.targetName, scc.targetSignature);
  break;
case DROPPED:
origin: io.prestosql.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: com.facebook.presto.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

  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: 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.stratio.cassandra/cassandra-driver-core

cluster.submitSchemaRefresh(null, null);
return;
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.facebook.presto.cassandra/cassandra-driver

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

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

schemaReady = submitSchemaRefresh(targetType, targetKeyspace, targetName, targetSignature);
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.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.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();
 }
}
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

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now