Examples of physicalPartitionId()


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

    byte[] bytes = new byte[b.remaining()];
    b.get(bytes);
    for (int i=0;i < numCheckpoints;++i)
    {
      _buffer.appendEvent(new DbusEventKey(ev.key()),
                          ev.physicalPartitionId(),
                          ev.logicalPartitionId(),
                          ev.timestampInNanos(),
                          ev.srcId(),
                          ev.schemaId(),
                          bytes,
View Full Code Here

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

      _currentWindowSizeInBytes += nextEvent.size();
      if (traceEnabled) _log.trace("Got event:" + nextEvent);
      Long eventSrcId = (long)nextEvent.srcId();
      if (curState.isSCNRegress())
      {
        SingleSourceSCN scn = new SingleSourceSCN(nextEvent.physicalPartitionId(),
                                                  nextEvent.sequence());
        _log.info("We are regressing to SCN: " + scn);
        curState.switchToRollback();
        doRollback(curState, scn, false, false);
        curState.setSCNRegress(false);
View Full Code Here

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

            SCN endWinScn = null;
            if (success)
            {
              _lastWindowScn = nextEvent.sequence();
              _lastEowTsNsecs = nextEvent.timestampInNanos();
              endWinScn = new SingleSourceSCN(nextEvent.physicalPartitionId(),
                                              _lastWindowScn);
              curState.switchToEndStreamEventWindow(endWinScn);
              success = doEndStreamEventWindow(curState);
            }
            if (success)
View Full Code Here

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

                }
                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.physicalPartitionId()

                              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));
                      }
                  }
                  catch (SharedCheckpointException e)
                  {
                      //shutdown
View Full Code Here

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

      //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.DbusEventInternalReadable.physicalPartitionId()

                  // DDSDBUS-1889 : scn for bootstrap is bootstrapSinceSCN
                  // scn for online consumption is : currentWindow
                  SCN lastScn = cp.getConsumptionMode() == DbusClientMode.ONLINE_CONSUMPTION ?
                          curState.getStartWinScn()
                          : new SingleSourceSCN(
                                  nextEvent.physicalPartitionId(),
                                  cp.getBootstrapSinceScn());
                  try
                  {
                      // Even if storeCheckpoint fails, we
                      // should continue (hoping for the best)
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.