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

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

Best Java code snippets using com.datastax.driver.core.Cluster$Manager.triggerOnDown (Showing top 17 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

cluster.manager.triggerOnDown(pool.host, true);
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.stratio.cassandra/cassandra-driver-core

  triggerOnDown(hostDown);
break;
origin: com.datastax.dse/dse-java-driver-core

cluster.manager.triggerOnDown(pool.host, true);
origin: io.prestosql.cassandra/cassandra-driver

public ListenableFuture<?> triggerOnDown(final Host host, boolean startReconnection) {
  return triggerOnDown(host, false, startReconnection);
}
origin: com.yugabyte/cassandra-driver-core

public ListenableFuture<?> triggerOnDown(final Host host, boolean startReconnection) {
  return triggerOnDown(host, false, startReconnection);
}
origin: com.facebook.presto.cassandra/cassandra-driver

public ListenableFuture<?> triggerOnDown(final Host host, boolean startReconnection) {
  return triggerOnDown(host, false, startReconnection);
}
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);
  }
});
origin: com.yugabyte/cassandra-driver-core

public void signalHostDown(Host host, boolean isHostAddition) {
  // Don't mark the node down until we've fully initialized the controlConnection as this might mess up with
  // the protocol detection
  if (!isFullyInit || isClosed())
    return;
  triggerOnDown(host, isHostAddition, true);
}
origin: com.stratio.cassandra/cassandra-driver-core

public ListenableFuture<?> triggerOnDown(final Host host) {
  return triggerOnDown(host, 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

public void signalHostDown(Host host, boolean isHostAddition) {
  // Don't mark the node down until we've fully initialized the controlConnection as this might mess up with
  // the protocol detection
  if (!isFullyInit || isClosed())
    return;
  triggerOnDown(host, isHostAddition, true);
}
origin: com.facebook.presto.cassandra/cassandra-driver

public void signalHostDown(Host host, boolean isHostAddition) {
  // Don't mark the node down until we've fully initialized the controlConnection as this might mess up with
  // the protocol detection
  if (!isFullyInit || isClosed())
    return;
  triggerOnDown(host, isHostAddition, true);
}
origin: com.stratio.cassandra/cassandra-driver-core

public boolean signalConnectionFailure(Host host, ConnectionException exception, boolean isHostAddition) {
  if (isClosed())
    return true;
  boolean isDown = host.signalConnectionFailure(exception);
  if (isDown)
    triggerOnDown(host, isHostAddition);
  return isDown;
}
origin: com.datastax.cassandra/cassandra-driver-core

public ListenableFuture<?> triggerOnDown(final Host host, boolean startReconnection) {
 return triggerOnDown(host, false, startReconnection);
}
origin: com.datastax.cassandra/cassandra-driver-core

public void signalHostDown(Host host, boolean isHostAddition) {
 // Don't mark the node down until we've fully initialized the controlConnection as this might
 // mess up with
 // the protocol detection
 if (!isFullyInit || isClosed()) return;
 triggerOnDown(host, isHostAddition, true);
}
com.datastax.driver.coreCluster$ManagertriggerOnDown

Popular methods of Cluster$Manager

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

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JButton (javax.swing)
  • Best plugins for Eclipse
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