Package com.basho.riak.client.bucket

Examples of com.basho.riak.client.bucket.Bucket.store()


  public void persistTreeMenu(Statistics statistics) {
    //logger.info("Persisting tree menu: " + statistics.getGuiPath() + " for account: " + statistics.getAccountName());
    Bucket myBucket = null;
        try {
            myBucket = riakClient.fetchBucket("Statistics;" + statistics.getAccountName()).execute();
            myBucket.store(statistics.getGuiPath(), statistics).execute();
        } catch (RiakRetryFailedException rrfe) {
            rrfe.printStackTrace();
        }
   
  }
View Full Code Here


                            throws IOException
                        {
                            try
                            {
                                super.close();
                                bucket.store( ref.identity(), toString() ).execute();
                            }
                            catch( RiakException ex )
                            {
                                throw new EntityStoreException( "Unable to apply entity change: newEntity", ex );
                            }
View Full Code Here

                                IRiakObject entity = bucket.fetch( ref.identity() ).execute();
                                if( entity == null )
                                {
                                    throw new EntityNotFoundException( ref );
                                }
                                bucket.store( ref.identity(), toString() ).execute();
                            }
                            catch( RiakException ex )
                            {
                                throw new EntityStoreException( "Unable to apply entity change: updateEntity", ex );
                            }
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.