Codota Logo
CurrentClient.enableListener
Code IndexAdd Codota to your IDE (free)

How to use
enableListener
method
in
org.scassandra.http.client.CurrentClient

Best Java code snippets using org.scassandra.http.client.CurrentClient.enableListener (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: com.datastax.cassandra/cassandra-driver-core

@BeforeMethod(groups = {"short", "long"})
@AfterMethod(groups = {"short", "long"})
public void resetClients() {
 activityClient.clearAllRecordedActivity();
 primingClient.clearAllPrimes();
 currentClient.enableListener();
}
origin: com.datastax.cassandra/cassandra-driver-core

currentClient.closeConnections(CLOSE);
TestUtils.waitForDown(TestUtils.IP_PREFIX + "1", cluster);
currentClient.enableListener();
TestUtils.waitForUp(TestUtils.IP_PREFIX + "1", cluster);
origin: com.datastax.cassandra/cassandra-driver-core

currentClient.enableListener();
origin: com.datastax.cassandra/cassandra-driver-core

currentClient.enableListener();
origin: com.datastax.cassandra/cassandra-driver-core

currentClient.enableListener();
Uninterruptibles.sleepUninterruptibly(reconnectInterval, TimeUnit.MILLISECONDS);
origin: com.datastax.cassandra/cassandra-driver-core

currentClient.enableListener();
origin: com.datastax.cassandra/cassandra-driver-core

assertThat(cluster).hasOpenControlConnection();
currentClient.enableListener();
origin: com.datastax.cassandra/cassandra-driver-core

/**
 * Ensures that if all connections fail to a host on pool init that the host is marked down.
 *
 * @jira_ticket JAVA-544
 * @test_category connection:connection_pool
 * @since 2.0.11
 */
@Test(groups = "short")
public void should_mark_host_down_if_all_connections_fail_on_init() {
 // Prevent any connections on node 2.
 scassandra.node(2).currentClient().disableListener();
 createCluster(8, 8);
 // Node 2 should be in a down state while node 1 stays up.
 assertThat(cluster).host(2).goesDownWithin(10, SECONDS);
 assertThat(cluster).host(1).isUp();
 // Node 2 should come up as soon as it is able to reconnect.
 scassandra.node(2).currentClient().enableListener();
 assertThat(cluster).host(2).comesUpWithin(2, SECONDS);
}
origin: com.datastax.dse/dse-java-driver-core

@BeforeMethod(groups = {"short", "long"})
@AfterMethod(groups = {"short", "long"})
public void resetClients() {
 activityClient.clearAllRecordedActivity();
 primingClient.clearAllPrimes();
 currentClient.enableListener();
}
origin: com.datastax.dse/dse-java-driver-core

currentClient.closeConnections(CLOSE);
TestUtils.waitForDown(TestUtils.IP_PREFIX + "1", cluster);
currentClient.enableListener();
TestUtils.waitForUp(TestUtils.IP_PREFIX + "1", cluster);
origin: com.datastax.dse/dse-java-driver-core

currentClient.enableListener();
origin: com.datastax.dse/dse-java-driver-core

currentClient.enableListener();
Uninterruptibles.sleepUninterruptibly(reconnectInterval, TimeUnit.MILLISECONDS);
origin: com.datastax.dse/dse-java-driver-core

currentClient.enableListener();
origin: com.datastax.dse/dse-java-driver-core

currentClient.enableListener();
origin: com.datastax.dse/dse-java-driver-core

/**
 * Ensures that if all connections fail to a host on pool init that the host is marked down.
 *
 * @jira_ticket JAVA-544
 * @test_category connection:connection_pool
 * @since 2.0.11
 */
@Test(groups = "short")
public void should_mark_host_down_if_all_connections_fail_on_init() {
 // Prevent any connections on node 2.
 scassandra.node(2).currentClient().disableListener();
 createCluster(8, 8);
 // Node 2 should be in a down state while node 1 stays up.
 assertThat(cluster).host(2).goesDownWithin(10, SECONDS);
 assertThat(cluster).host(1).isUp();
 // Node 2 should come up as soon as it is able to reconnect.
 scassandra.node(2).currentClient().enableListener();
 assertThat(cluster).host(2).comesUpWithin(2, SECONDS);
}
origin: com.datastax.dse/dse-java-driver-core

assertThat(cluster).hasOpenControlConnection();
currentClient.enableListener();
org.scassandra.http.clientCurrentClientenableListener

Popular methods of CurrentClient

  • disableListener
  • closeConnection
  • closeConnections
  • <init>
  • builder
  • closeConnectionsByUrl
  • getConnection
  • getConnectionsByUrl
  • invokeListener

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now