Examples of ReadEventCycleSummary


Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

        LOG.info("Start SCN :" + maxScn);
        LOG.info("End SCN :" + endScn);
      }
        long endTS = System.currentTimeMillis();

      ReadEventCycleSummary cycleSummary = new ReadEventCycleSummary("seeder",
                                                                     summaries, maxScn,
                                                                     (endTS - startTS));
    return cycleSummary;
  }
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

      }
      LOG.info("Start SCN :" + minScn);
  
      long endTS = System.currentTimeMillis();

      ReadEventCycleSummary cycleSummary = new ReadEventCycleSummary("seeder",
                                                                   summaries, minScn,
                                                                   (endTS - startTS));
    return cycleSummary;
  }
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

      if(_log.isDebugEnabled())
        _log.debug("There are "+ eventsInDbUpdate + " events seen in the current dbUpdate");
    }

    // Log Event Summary at Physical source level
    ReadEventCycleSummary summary = new ReadEventCycleSummary(_pConfig.getName(),
                                                              summaries,
                                                              scn,
                                                              -1 /* Overall time including query time not calculated */);

    if (_eventsLog.isInfoEnabled())
    {
      _eventsLog.info(summary.toString());
    }

    _log.info("Writing "+ eventsInTransactionCount + " events from transaction with scn: " + scn);
    if(scn <= 0)
      throw new DatabusException("Unable to write events to buffer because of negative/zero scn: " + scn);
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

        perSourceStats.addTimeOfLastDBAccess(tsEnd);
        globalStats.addTimeOfLastDBAccess(tsEnd);
      }
      _eventBuffer.endEvents(scn, _relayInboundStatsCollector);
      // Log Event Summary at Physical source level
      ReadEventCycleSummary summary = new ReadEventCycleSummary(_physicalSourceStaticConfig.getName(),
                                                                summaries,
                                                                scn,
                                                                -1 /* Overall time including query time not calculated */);

      if (_eventsLog.isInfoEnabled())
      {
        _eventsLog.info(summary.toString());
      }
    }
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

        }

        try
        {
          // Read events from all sources
          ReadEventCycleSummary summary = readEventsFromAllSources(_sinceSCN.get());

          // Find the new max SCN across all sources and update _sinceSCN
          long newSinceSCN = Math.max(summary.getEndOfWindowScn(), _sinceSCN.get());
          _sinceSCN.set(newSinceSCN);

          // Friendly log messages
          if (_eventsLog.isDebugEnabled() || (_eventsLog.isInfoEnabled() && summary.getTotalEventNum() >0))
          {
            _eventsLog.info(summary.toString());
          }

          if (_status.getRetriesNum() > 0) _status.resume();
          _status.getRetriesCounter().reset();
          // Sleep until the next cycle
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

      LOG.info("Started RelayLogger");
      while (!_shutdown)
      {
        try
        {
          ReadEventCycleSummary readEventCycle = _relayStatsAdapter.getReadEventCycleSummary();
          if ((readEventCycle != null) && (_eventsLog.isDebugEnabled() || (_eventsLog.isInfoEnabled())
                && (readEventCycle.getTotalEventNum() > 0)))
          {
            _eventsLog.info(readEventCycle.toString());
          }
          Thread.sleep(_logIntervalMs);
        }
        catch (InterruptedException e)
        {
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

     * Return event cycle summary object ; since last invocation
     * @return
     */
    public synchronized ReadEventCycleSummary getReadEventCycleSummary()
    {
      ReadEventCycleSummary diff = null;
      if (_stats != null)
      {
        ReadEventCycleSummary currentReadEventSummary  = getReadEventSummary();
        if (_lastReadEventSummary != null)
        {
          diff = getDiff(currentReadEventSummary, _lastReadEventSummary);
          _lastReadEventSummary = null;
        }
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

      List<EventReaderSummary> sourceSummaries = new ArrayList<EventReaderSummary>();
      for (Integer srcId : _stats.getSources())
      {
        sourceSummaries.add(getSummary(srcId));
      }
      ReadEventCycleSummary summary = new ReadEventCycleSummary(_name, sourceSummaries,
          _stats.getTotalStats().getMaxScn(), System.currentTimeMillis());
      return summary;
    }
View Full Code Here

Examples of com.linkedin.databus2.producers.db.ReadEventCycleSummary

        List<EventReaderSummary> sourceSummaries = new ArrayList<EventReaderSummary>();
        for (int i=0; i < src1Summaries.size();++i)
        {
          sourceSummaries.add(getDiff(src1Summaries.get(i),src2Summaries.get(i)));
        }
        ReadEventCycleSummary r1 = new ReadEventCycleSummary(src1.getEventSourceName(), sourceSummaries,
            src1.getEndOfWindowScn(), src1.getReadMillis()-src2.getReadMillis());
        return r1;
      }
      return null;
    }
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.