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

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


                .build();
       
        cluster.execute(storeOp);
        storeOp.get();
       
        ListBucketsOperation listOp = new ListBucketsOperation.Builder()
                                        .withBucketType(BinaryValue.createFromUtf8(bucketType))
                                        .build();
        cluster.execute(listOp);
        List<BinaryValue> bucketList = listOp.get().getBuckets();
        assertTrue(bucketList.size() > 0);
       
        boolean found = false;
        for (BinaryValue baw : bucketList)
        {
View Full Code Here


            cluster.execute(storeOp);
        }
       
        latch.await();
       
        ListBucketsOperation listOp = new ListBucketsOperation.Builder()
                                        .withBucketType(BinaryValue.createFromUtf8(bucketType))
                                        .build();
        cluster.execute(listOp);
        List<BinaryValue> bucketList = listOp.get().getBuckets();
        assertTrue(bucketList.size() >= 1000);
       
        for (int i = 0; i < 1000; i++)
        {
            Namespace ns = new Namespace(bucketType, bucketName.toString() + i);
View Full Code Here

TOP

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

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.