Tabnine Logo
Cluster$Manager.logClusterNameMismatch
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.datastax.cassandra/cassandra-driver-core

 @Override
 public void onFailure(Throwable t) {
  if (t instanceof UnsupportedProtocolVersionException) {
   cluster.manager.logUnsupportedVersionProtocol(
     host, ((UnsupportedProtocolVersionException) t).getUnsupportedVersion());
   cluster.manager.triggerOnDown(host, false);
  } else if (t instanceof ClusterNameMismatchException) {
   ClusterNameMismatchException e = (ClusterNameMismatchException) t;
   cluster.manager.logClusterNameMismatch(
     host, e.expectedClusterName, e.actualClusterName);
   cluster.manager.triggerOnDown(host, false);
  } else {
   logger.warn("Error creating pool to " + host, t);
   // do not mark the host down, as there could be other connections to it
   // (e.g. the control connection, or another session pool).
   // The conviction policy will mark it down if it has no more active connections.
  }
  // propagate errors; for all other exceptions, consider the pool init failed
  // but allow the session init process to continue normally
  if (t instanceof Error) future.setException(t);
  else future.set(false);
 }
});
origin: com.datastax.cassandra/cassandra-driver-core

 return;
} catch (ClusterNameMismatchException e) {
 logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
 return;
origin: com.datastax.cassandra/cassandra-driver-core

 return;
} catch (ClusterNameMismatchException e) {
 logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
 return;
origin: com.yugabyte/cassandra-driver-core

  return;
} catch (ClusterNameMismatchException e) {
  logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
  return;
origin: com.facebook.presto.cassandra/cassandra-driver

  return;
} catch (ClusterNameMismatchException e) {
  logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
  return;
origin: io.prestosql.cassandra/cassandra-driver

  return;
} catch (ClusterNameMismatchException e) {
  logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
  return;
origin: com.yugabyte/cassandra-driver-core

  return;
} catch (ClusterNameMismatchException e) {
  logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
  return;
origin: io.prestosql.cassandra/cassandra-driver

  return;
} catch (ClusterNameMismatchException e) {
  logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
  return;
origin: com.facebook.presto.cassandra/cassandra-driver

  return;
} catch (ClusterNameMismatchException e) {
  logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
  return;
origin: com.yugabyte/cassandra-driver-core

  @Override
  public void onFailure(Throwable t) {
    if (t instanceof UnsupportedProtocolVersionException) {
      cluster.manager.logUnsupportedVersionProtocol(host, ((UnsupportedProtocolVersionException) t).getUnsupportedVersion());
      cluster.manager.triggerOnDown(host, false);
    } else if (t instanceof ClusterNameMismatchException) {
      ClusterNameMismatchException e = (ClusterNameMismatchException) t;
      cluster.manager.logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
      cluster.manager.triggerOnDown(host, false);
    } else {
      logger.warn("Error creating pool to " + host, t);
    }
    future.set(false);
  }
});
origin: com.facebook.presto.cassandra/cassandra-driver

  @Override
  public void onFailure(Throwable t) {
    if (t instanceof UnsupportedProtocolVersionException) {
      cluster.manager.logUnsupportedVersionProtocol(host, ((UnsupportedProtocolVersionException) t).getUnsupportedVersion());
      cluster.manager.triggerOnDown(host, false);
    } else if (t instanceof ClusterNameMismatchException) {
      ClusterNameMismatchException e = (ClusterNameMismatchException) t;
      cluster.manager.logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
      cluster.manager.triggerOnDown(host, false);
    } else {
      logger.warn("Error creating pool to " + host, t);
    }
    future.set(false);
  }
});
origin: io.prestosql.cassandra/cassandra-driver

  @Override
  public void onFailure(Throwable t) {
    if (t instanceof UnsupportedProtocolVersionException) {
      cluster.manager.logUnsupportedVersionProtocol(host, ((UnsupportedProtocolVersionException) t).getUnsupportedVersion());
      cluster.manager.triggerOnDown(host, false);
    } else if (t instanceof ClusterNameMismatchException) {
      ClusterNameMismatchException e = (ClusterNameMismatchException) t;
      cluster.manager.logClusterNameMismatch(host, e.expectedClusterName, e.actualClusterName);
      cluster.manager.triggerOnDown(host, false);
    } else {
      logger.warn("Error creating pool to " + host, t);
    }
    future.set(false);
  }
});
com.datastax.driver.coreCluster$ManagerlogClusterNameMismatch

Popular methods of Cluster$Manager

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • Kernel (java.awt.image)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Option (scala)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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