Package org.activeio.journal

Examples of org.activeio.journal.RecordLocation.compareTo()


                            }
                            if (logger.isDebugEnabled()) {
                                logger.debug("Marking to " + n + " / "
                                        + (pendingMarks.isEmpty() ? "null" : pendingMarks.last()));
                            }
                            if (journal.getMark() == null || n.compareTo(journal.getMark()) > 0) {
                                journal.setMark(n, false);
                            }
                            m.clear();
                        }
                    }
View Full Code Here


      data = journal.read(location3);
      assertEquals( data3, data);
     
      // Can we cursor the data?
      RecordLocation l=journal.getNextRecordLocation(null);
      assertEquals(0, l.compareTo(location1));
      data = journal.read(l);
      assertEquals( data1, data);

      l=journal.getNextRecordLocation(l);
      assertEquals(0, l.compareTo(location2));
View Full Code Here

      assertEquals(0, l.compareTo(location1));
      data = journal.read(l);
      assertEquals( data1, data);

      l=journal.getNextRecordLocation(l);
      assertEquals(0, l.compareTo(location2));
      data = journal.read(l);
      assertEquals( data2, data);

      l=journal.getNextRecordLocation(l);
      assertEquals(0, l.compareTo(location3));
View Full Code Here

      assertEquals(0, l.compareTo(location2));
      data = journal.read(l);
      assertEquals( data2, data);

      l=journal.getNextRecordLocation(l);
      assertEquals(0, l.compareTo(location3));
      data = journal.read(l);
      assertEquals( data3, data);
     
      l=journal.getNextRecordLocation(l);
      assertNull(l);
View Full Code Here

    RecordLocation rc = super.checkpoint();   
    final HashMap ackedLastAckLocations;

    // swap out the hashmaps..
    synchronized(this) {
      if( rc==null || rc.compareTo(this.nextMark)<0 ) {
        rc = this.nextMark;
      }         
        ackedLastAckLocations = this.ackedLastAckLocations;
        this.nextMark=null;
        this.ackedLastAckLocations = new HashMap();
View Full Code Here

    RecordLocation rc = super.checkpoint();   
    final HashMap ackedLastAckLocations;

    // swap out the hashmaps..
    synchronized(this) {
      if( rc==null || (this.nextMark!=null && rc.compareTo(this.nextMark)<0) ) {
        rc = this.nextMark;
      }         
        ackedLastAckLocations = this.ackedLastAckLocations;
        this.nextMark=null;
        this.ackedLastAckLocations = new HashMap();
View Full Code Here

    RecordLocation rc = super.checkpoint();   
    final HashMap cpAckedLastAckLocations;

    // swap out the hashmaps..
    synchronized(this) {
      if( rc==null || (this.nextMark!=null && rc.compareTo(this.nextMark)<0) ) {
        rc = this.nextMark;
      }         
        cpAckedLastAckLocations = this.ackedLastAckLocations;
        this.nextMark=null;
        this.ackedLastAckLocations = new HashMap();
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.