Package com.basho.riak.client.core.operations

Examples of com.basho.riak.client.core.operations.PingOperation.await()


    public void theMachinethatGoesPing() throws InterruptedException, ExecutionException
    {
        PingOperation ping = new PingOperation();
        cluster.execute(ping);
       
        ping.await();
        assertTrue(ping.isSuccess());
    }
   
    @Test
    public void theMachineThatDoesntGoPing() throws UnknownHostException, InterruptedException
View Full Code Here


        RiakCluster cluster = new RiakCluster.Builder(builder.build()).build();
        cluster.start();
       
        PingOperation ping = new PingOperation();
        cluster.execute(ping);
        ping.await();
       
        assertFalse(ping.isSuccess());
        assertNotNull(ping.cause());
       
        cluster.shutdown();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.