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

Examples of com.basho.riak.client.core.operations.PingOperation


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


                                        .withMinConnections(10);
       
        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

{

    @Override
    protected FutureOperation<?, ?, ?> buildOperation()
    {
        return new PingOperation();
    }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.operations.PingOperation

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.