Examples of sequence()


Examples of com.linkedin.databus.core.DbusEventInternalReadable.sequence()

                }
                Checkpoint ckpt = createCheckpoint(curState, nextEvent);
                try
                {
                     success = doStoreCheckpoint(curState, nextEvent, ckpt,
                            new SingleSourceSCN(nextEvent.physicalPartitionId(),nextEvent.sequence()));
                }
                catch (SharedCheckpointException e)
                {
                    //shutdown
                    return;
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalReadable.sequence()

                    return;
                }
            }
            else
            {
                _log.warn("EOP with scn=" + nextEvent.sequence());
            }
          }
          if (success)
          {
            curState.switchToExpectEventWindow();
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalReadable.sequence()

          }
          if (success)
          {
            curState.switchToExpectEventWindow();
            //we have recovered from the error  and it's not the dummy window
            if (nextEvent.sequence() > 0)
            {
              if (! getStatus().isRunningStatus()) getStatus().resume();
            }
          }
        }
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalReadable.sequence()

            }
          }
        }
        else if (nextEvent.isErrorEvent())
        {
          _log.info("Error event: " + nextEvent.sequence());
          success = processErrorEvent(curState, nextEvent);
        }
        else
        {
          //control event
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalReadable.sequence()

              {
                  Checkpoint sysCheckpt = createCheckpoint(curState, nextEvent);
                  try
                  {
                      long scn = sysCheckpt.getConsumptionMode() == DbusClientMode.ONLINE_CONSUMPTION ?
                              nextEvent.sequence() : sysCheckpt.getBootstrapSinceScn();
                      //ensure that control event with 0 scn doesn't get saved unless it is during snapshot of bootstrap
                      if (scn > 0 || sysCheckpt.getConsumptionMode()==DbusClientMode.BOOTSTRAP_SNAPSHOT)
                      {
                          success = doStoreCheckpoint(curState, nextEvent, sysCheckpt,
                                  new SingleSourceSCN(nextEvent.physicalPartitionId(),scn));
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalReadable.sequence()

      //not a control event
        if (curState.getStateId().equals(StateId.EXPECT_EVENT_WINDOW) ||
            curState.getStateId().equals(StateId.REPLAY_DATA_EVENTS))
        {
          SCN startScn = new SingleSourceSCN(nextEvent.physicalPartitionId(),
                                             nextEvent.sequence());
          curState.switchToStartStreamEventWindow(startScn);
          success = doStartStreamEventWindow(curState);

          if (success && (eventSrcId.longValue() >= 0))
          {
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalWritable.sequence()

        DbusEventGenerator eventGen = new DbusEventGenerator(startScn+1);
        long newScn = eventGen.generateEvents(numEvents, _maxWindowSize, maxEventSize, payloadSize, true, events);
        DbusEventInternalWritable p = null;
        for (DbusEvent e : events)
        {
          if (p != null && (p.sequence() != e.sequence()))
          {
            //control event for prev sequence;
            p.setSrcId((short)-1);
            _stats.registerDataEvent(p);
          }
View Full Code Here

Examples of com.linkedin.databus.core.DbusEventInternalWritable.sequence()

                                  true,
                                  events);
      DbusEventInternalWritable p = null;
      for (DbusEvent e : events)
      {
        if (p != null && (p.sequence() != e.sequence()))
        {
          // control event for prev sequence;
          p.setSrcId((short) -1);
          _stats.registerDataEvent(p);
        }
View Full Code Here

Examples of com.lmax.disruptor.support.StubEntry.sequence()

        Runnable runnable = new Runnable()
        {
            public void run()
            {
                StubEntry entry = ringBuffer.nextEntry();
                entry.setValue((int) entry.sequence());
                ringBuffer.commit(entry);

                for (StubConsumer stubWorker : workers)
                {
                    stubWorker.sequence_(entry.sequence());
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.language.IntArray.IntArrayIterable.sequence()

        Assert.assertFalse(zero_ten.contains(ceylon.language.Integer.instance(11)));
        Assert.assertFalse(zero_ten.contains(ceylon.language.Integer.instance(-1)));
       
        // taking
        IntArrayIterable zero_seven = zero_ten.take(8);
        Assert.assertEquals("[0, 1, 2, 3, 4, 5, 6, 7]", zero_seven.sequence().toString());
       
        // skipping
        IntArrayIterable two_seven = zero_ten.take(8).skip(2);
        Assert.assertEquals("[2, 3, 4, 5, 6, 7]", two_seven.sequence().toString());
       
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.