congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Host.getListenAddress
Code IndexAdd Tabnine to your IDE (free)

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

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

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

public HostAssert hasListenAddress(InetAddress address) {
 assertThat(actual.getListenAddress()).isNotNull().isEqualTo(address);
 return this;
}
origin: com.datastax.cassandra/cassandra-driver-core

public HostAssert hasNoListenAddress() {
 assertThat(actual.getListenAddress()).isNull();
 return this;
}
origin: com.datastax.dse/dse-java-driver-core

public HostAssert hasListenAddress(InetAddress address) {
 assertThat(actual.getListenAddress()).isNotNull().isEqualTo(address);
 return this;
}
origin: com.datastax.dse/dse-java-driver-core

public HostAssert hasNoListenAddress() {
 assertThat(actual.getListenAddress()).isNull();
 return this;
}
com.datastax.driver.coreHostgetListenAddress

Javadoc

Returns the node listen address (that is, the IP the node uses to contact other peers in the cluster), if known.

This corresponds to the listen_address cassandra.yaml file setting. This is NOT the address clients should use to contact this node.

This information is available for the control host if CASSANDRA-9603 is fixed on the server side (Cassandra versions >= 2.0.17, 2.1.8, 2.2.0 rc2). It's currently not available for peer hosts. Note that the current driver code already tries to read a listen_address column in system.peers; when a future Cassandra version adds it, it will be picked by the driver without any further change needed.

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
  • equals
  • <init>
  • getBroadcastAddress
    Returns the node broadcast address (that is, the IP by which it should be contacted by other peers i
  • setDown
  • setLocationInfo
  • setDown,
  • setLocationInfo,
  • setUp,
  • wasJustAdded,
  • setDseGraphEnabled,
  • setDseVersion,
  • setDseWorkload,
  • setTokens,
  • setVersion,
  • getBroadcastSocketAddress

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm 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