Tabnine Logo
Host.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
com.datastax.driver.core.Host

Best Java code snippets using com.datastax.driver.core.Host.equals (Showing top 9 results out of 315)

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

@Override
public boolean equals(Object other) {
 if (other == this) return true;
 if (other instanceof Entry) {
  Entry that = (Entry) other;
  return this.action == that.action && this.host.equals(that.host);
 }
 return false;
}
origin: com.datastax.cassandra/cassandra-driver-core

void refreshConnectedHost(Host host) {
 // Deal with the control connection if it was using this host
 Host ccHost = controlConnection.connectedHost();
 if (ccHost == null
   || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL)
  controlConnection.triggerReconnect();
 for (SessionManager s : sessions) s.updateCreatedPools(host);
}
origin: com.datastax.dse/dse-java-driver-core

@Override
public boolean equals(Object other) {
 if (other == this) return true;
 if (other instanceof Entry) {
  Entry that = (Entry) other;
  return this.action == that.action && this.host.equals(that.host);
 }
 return false;
}
origin: com.datastax.cassandra/cassandra-driver-core

if (!host.equals(host4)) {
 TokenRange hostRange = metadata.getTokenRanges(keyspace, host).iterator().next();
 assertThat(host4Range).doesNotIntersect(hostRange);
origin: com.yugabyte/cassandra-driver-core

void refreshConnectedHost(Host host) {
  // Deal with the control connection if it was using this host
  Host ccHost = controlConnection.connectedHost();
  if (ccHost == null || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL)
    controlConnection.triggerReconnect();
  for (SessionManager s : sessions)
    s.updateCreatedPools(host);
}
origin: com.facebook.presto.cassandra/cassandra-driver

void refreshConnectedHost(Host host) {
  // Deal with the control connection if it was using this host
  Host ccHost = controlConnection.connectedHost();
  if (ccHost == null || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL)
    controlConnection.triggerReconnect();
  for (SessionManager s : sessions)
    s.updateCreatedPools(host);
}
origin: io.prestosql.cassandra/cassandra-driver

void refreshConnectedHost(Host host) {
  // Deal with the control connection if it was using this host
  Host ccHost = controlConnection.connectedHost();
  if (ccHost == null || ccHost.equals(host) && loadBalancingPolicy().distance(ccHost) != HostDistance.LOCAL)
    controlConnection.triggerReconnect();
  for (SessionManager s : sessions)
    s.updateCreatedPools(host);
}
origin: com.moz.fiji.schema/fiji-schema-cassandra

if (!(!peerHost1.equals(peerHost2) // consistent because peer1/peer2 sets will be comprehensive
  || localHost.equals(peerHost1) // consistent because local/peer1 sets will be comprehensive
  || localHost.equals(peerHost2) // consistent because local/peer2 sets will be comprehensive
)) {
 throw new InternalFijiError(
origin: com.datastax.dse/dse-java-driver-core

if (!host.equals(host4)) {
 TokenRange hostRange = metadata.getTokenRanges(keyspace, host).iterator().next();
 assertThat(host4Range).doesNotIntersect(hostRange);
com.datastax.driver.coreHostequals

Popular methods of Host

  • getAddress
    Returns the address that the driver will use to connect to the node. This is a shortcut for getSocke
  • getDatacenter
    Returns the name of the datacenter this host is part of. The returned datacenter name is the one as
  • getRack
    Returns the name of the rack this host is part of. The returned rack name is the one as known by Cas
  • getCassandraVersion
    The Cassandra version the host is running. It is also possible for this information to be unavailabl
  • isUp
    Returns whether the host is considered up by the driver. Please note that this is only the view of t
  • getSocketAddress
    Returns the address and port that the driver will use to connect to the node. This is the node's br
  • toString
  • <init>
  • getBroadcastAddress
    Returns the node broadcast address (that is, the IP by which it should be contacted by other peers i
  • setDown
  • setLocationInfo
  • setUp
  • setLocationInfo,
  • setUp,
  • wasJustAdded,
  • setDseGraphEnabled,
  • setDseVersion,
  • setDseWorkload,
  • setTokens,
  • setVersion,
  • getBroadcastSocketAddress

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top Vim 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