Package org.xtreemfs.babudb.log

Examples of org.xtreemfs.babudb.log.LogEntry.free()


                ReplicateResponse rp = replMan.replicate(le);
                if (!rp.hasFailed()) {
                    replMan.subscribeListener(rp);
                }
               
                le.free();
            }
           
            @Override
            public void failed(BabuDBException error, Object context) {
               
View Full Code Here


                ReplicateResponse rp = replMan.replicate(le);
                if (!rp.hasFailed()) {
                    replMan.subscribeListener(rp);
                }
               
                le.free();
            }
           
            @Override
            public void failed(BabuDBException error, Object context) {
               
View Full Code Here

                        BufferPool.free(buf);
                       
                    } finally {
                        checksum.reset();
                        if (le != null) {
                            le.free();
                            le = null;
                        }
                    }
                }
               
View Full Code Here

                // clear result
                BufferPool.free(resultPayLoad);
               
                rq.sendSuccess(result.setErrorCode(ErrorCode.BUSY).build());
            } finally {
                if (le != null) le.free();
               
                if (it != null) {
                    try {
                        it.destroy();
                    } catch (IOException e) { /* ignored */ }
View Full Code Here

                assertEquals(testEntry.getPayload().position(), receivedEntry.getPayload().position());
                assertEquals(new String(testEntry.getPayload().array()),
                             new String(receivedEntry.getPayload().array()));
               
                // clean up
                receivedEntry.free();
            }
           
            @Override
            public void createStableState(LSN lastOnView, InetSocketAddress master) {
                fail("Operation should not have been accessed by this test!");
View Full Code Here

            Logging.logMessage(Logging.LEVEL_DEBUG, this, "ReplicateOperation:" +
                    " received %s", le.toString());
            rqMan.enqueueOperation(new Object[]{ lsn, le });
            rq.sendSuccess(ErrorCodeResponse.getDefaultInstance());
        } catch (Exception e) {
            if (le!=null) le.free();
            rq.sendSuccess(ErrorCodeResponse.newBuilder().setErrorCode(ErrorCode.BUSY).build());
        }
    }
}
View Full Code Here

                   
                    // set LSN
                    nextLSN = new LSN(le.getViewId(), le.getLogSequenceNo() + 1L);
                } finally {
                    if (le != null) {
                        le.free();
                    }
                }
               
            }
           
View Full Code Here

                   
                    // set LSN
                    nextLSN = new LSN(le.getViewId(), le.getLogSequenceNo() + 1L);
                } finally {
                    if (le != null) {
                        le.free();
                    }
                }
               
            }
           
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.