Package org.apache.log4j

Examples of org.apache.log4j.Logger.info()


      cp1.setBootstrapTargetScn(1000L + snapshotSourceIndex * 10);
      handler.advanceAfterTargetScn(cp1);

      for (int catchupSourceIndex = 0; catchupSourceIndex <= snapshotSourceIndex; ++catchupSourceIndex)
      {
        log.info("    FINISH CATCHUP: " + MANY_SOURCES[catchupSourceIndex]);
        handler.finalizeCatchupPhase(cp1);
        assertCatchupCompleteCheckpoint(handler, cp1, catchupSourceIndex, MANY_SOURCES[catchupSourceIndex]);

        log.info("    ADVANCE: " + MANY_SOURCES[catchupSourceIndex]);
        handler.advanceAfterCatchupPhase(cp1);
View Full Code Here


      {
        log.info("    FINISH CATCHUP: " + MANY_SOURCES[catchupSourceIndex]);
        handler.finalizeCatchupPhase(cp1);
        assertCatchupCompleteCheckpoint(handler, cp1, catchupSourceIndex, MANY_SOURCES[catchupSourceIndex]);

        log.info("    ADVANCE: " + MANY_SOURCES[catchupSourceIndex]);
        handler.advanceAfterCatchupPhase(cp1);
        if (catchupSourceIndex < snapshotSourceIndex)
        {
          log.info("    START  CATCHUP: " + MANY_SOURCES[catchupSourceIndex + 1]);
          assertAfterNonfinalCatchupCheckpoint(handler, cp1, catchupSourceIndex + 1,
View Full Code Here

        log.info("    ADVANCE: " + MANY_SOURCES[catchupSourceIndex]);
        handler.advanceAfterCatchupPhase(cp1);
        if (catchupSourceIndex < snapshotSourceIndex)
        {
          log.info("    START  CATCHUP: " + MANY_SOURCES[catchupSourceIndex + 1]);
          assertAfterNonfinalCatchupCheckpoint(handler, cp1, catchupSourceIndex + 1,
                                               MANY_SOURCES[catchupSourceIndex + 1]);
        }
      }
      if (snapshotSourceIndex < MANY_SOURCES.length - 1)
View Full Code Here

                                               MANY_SOURCES[catchupSourceIndex + 1]);
        }
      }
      if (snapshotSourceIndex < MANY_SOURCES.length - 1)
      {
        log.info("START  SNAPSHOT: " + MANY_SOURCES[snapshotSourceIndex + 1] );
        assertSnapshotAfterCatchupCheckpoint(handler, cp1, snapshotSourceIndex + 1,
                                             MANY_SOURCES[snapshotSourceIndex + 1]);
      }
    }
View Full Code Here

        assertSnapshotAfterCatchupCheckpoint(handler, cp1, snapshotSourceIndex + 1,
                                             MANY_SOURCES[snapshotSourceIndex + 1]);
      }
    }

    log.info("bootstrap should be done");
    assertAfterFinalCatchupCheckpoint(handler, cp1);
  }

  @Test
  public void testAdvanceAfterTargetScn()
View Full Code Here

  throws Exception
  {
    final Logger log =
        Logger.getLogger("TestDbusEventBufferIterator.testInternalIteratorHappyPathSingleBuf");
    //log.setLevel(Level.INFO);
    log.info("starting");

    final DbusEventBuffer dbusBuf =
        new DbusEventBuffer(TestDbusEventBuffer.getConfig(
            100000, 100000, 100, 500, AllocationPolicy.HEAP_MEMORY, QueuePolicy.OVERWRITE_ON_WRITE,
            AssertLevel.ALL));
View Full Code Here

    final DbusEventBuffer dbusBuf =
        new DbusEventBuffer(TestDbusEventBuffer.getConfig(
            100000, 100000, 100, 500, AllocationPolicy.HEAP_MEMORY, QueuePolicy.OVERWRITE_ON_WRITE,
            AssertLevel.ALL));

    log.info("verify iterators on empty buffers ");
    final InternalEventIterator iter0 =
        dbusBuf.acquireInternalIterator(dbusBuf.getHead(), dbusBuf.getTail(), null);
    Assert.assertEquals(iter0.getCurrentPosition(), dbusBuf.getHead());
    Assert.assertEquals(iter0._iteratorTail.getPosition(), dbusBuf.getTail());
    Assert.assertNotNull(iter0.getIdentifier());
View Full Code Here

    Assert.assertNotNull(iter0.getIdentifier());
    Assert.assertTrue(iter0.getIdentifier().startsWith(InternalEventIterator.class.getSimpleName()));
    Assert.assertTrue(!iter0.hasNext());
    Assert.assertEquals(dbusBuf._busyIteratorPool.size(), 1);

    log.info("append a full window of events");
    final DbusEventGenerator generator = new DbusEventGenerator();
    final Vector<DbusEvent> events = new Vector<DbusEvent>();
    generator.generateEvents(5, 5, 120, 39, events);
    injectEventsInBuffer(dbusBuf, events, false);
View Full Code Here

    final DbusEventGenerator generator = new DbusEventGenerator();
    final Vector<DbusEvent> events = new Vector<DbusEvent>();
    generator.generateEvents(5, 5, 120, 39, events);
    injectEventsInBuffer(dbusBuf, events, false);

    log.info("verify we can read all events");
    //old iterator has not changed
    Assert.assertTrue(!iter0.hasNext());

    log.info("verify new iterator");
    InternalEventIterator iter1 =
View Full Code Here

    log.info("verify we can read all events");
    //old iterator has not changed
    Assert.assertTrue(!iter0.hasNext());

    log.info("verify new iterator");
    InternalEventIterator iter1 =
        dbusBuf.acquireInternalIterator(dbusBuf.getHead(), dbusBuf.getTail(), null);
    Assert.assertEquals(iter1.getCurrentPosition(), dbusBuf.getHead());
    Assert.assertEquals(iter1._iteratorTail.getPosition(), dbusBuf.getTail());
    Assert.assertNotNull(iter1.getIdentifier());
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.