Package com.datastax.driver.core.Host

Examples of com.datastax.driver.core.Host.StateListener


        return this;
    }

    public HostAssert comesUpWithin(long duration, TimeUnit unit) {
        final CountDownLatch upSignal = new CountDownLatch(1);
        StateListener upListener = new StateListenerBase() {
            public void onUp(Host host) {
                upSignal.countDown();
            }
        };
        cluster.register(upListener);
View Full Code Here


        return this;
    }

    public HostAssert goesDownWithin(long duration, TimeUnit unit) {
        final CountDownLatch downSignal = new CountDownLatch(1);
        StateListener upListener = new StateListenerBase() {
            public void onDown(Host host) {
                downSignal.countDown();
            }
        };
        cluster.register(upListener);
View Full Code Here

TOP

Related Classes of com.datastax.driver.core.Host.StateListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.