Examples of BackoffTimer


Examples of com.linkedin.databus2.core.BackoffTimer

    _isConsumeCurrent = isConsumeCurrent;
    _remoteExceptionHandler = new RemoteExceptionHandler(sourcesConn, dbusEventBuffer, eventFactory);
    _relayCallsStats = _sourcesConn.getLocalRelayCallsStatsCollector();
    _isReadLatestScnOnErrorEnabled = isReadLatestScnOnErrorEnabled;
    _pullerBufferUtilizationPct = pullerBufferUtilPct;
    _retriesOnFallOff = new BackoffTimer("RetriesOnFallOff",
        new BackoffTimerStaticConfig(0, 0, 1, 0, sourcesConn.getConnectionConfig().getNumRetriesOnFallOff()));
    _noEventsConnectionResetTimeSec = noEventsConnectionResetTimeSec;
  }
View Full Code Here

Examples of com.linkedin.databus2.core.BackoffTimer

    Random rng = new Random();
    DatabusRelayConnection relayConn = null;
    ServerInfo serverInfo = null;

    int retriesLeft;
    BackoffTimer originalCounter =_status.getRetriesCounter();

    if( curState.isRelayFellOff())
      _status.setRetriesCounter(_retriesOnFallOff);

    while (null == relayConn && (retriesLeft = _status.getRetriesLeft()) >= 0 && !checkForShutdownRequest())
View Full Code Here

Examples of com.linkedin.databus2.core.BackoffTimer

    // Create a infinite backoff timer that waits for maximum of 1 sec
    // for writing the control message to evb
    BackoffTimerStaticConfig timerConfig = new BackoffTimerStaticConfig(
        1, 1000, 1, 1, -1);
    BackoffTimer timer = new BackoffTimer("EVB More Space Timer",
        timerConfig);
    timer.reset();

    byte[] eventBytes = new byte[event.size()];

    _log.info("Event size: " + eventBytes.length);
    _log.info("Event:" + event.toString());

    event.getRawBytes().get(eventBytes);

    UnifiedClientStats unifiedClientStats = _sourcesConn.getUnifiedClientStats();

    while ((!success) && (timer.getRemainingRetriesNum() > 0))
    {
      ByteArrayInputStream cpIs = new ByteArrayInputStream(
          eventBytes);
      ReadableByteChannel cpRbc = Channels.newChannel(cpIs);

      sendHeartbeat(unifiedClientStats);
      int ecnt = curState.getDataEventsBuffer().readEvents(cpRbc);
      if (ecnt <= 0) {
        _log.error("Not enough spece in the event buffer to add a control message :" + message);
        boolean interrupted = !timer.backoffAndSleep();

        if (interrupted)
          throw new InterruptedException(
              "Got interrupted while waiting to write control Message to EVB : " + message);
      } else {
View Full Code Here

Examples of com.linkedin.databus2.core.BackoffTimer

                             Logger log)
  {
    super(name, sourcesConn.getConnectionConfig().getBstPullerRetries(), sourcesConn, dbusEventBuffer,
          connStateFactory, bootstrapServers, mbeanServer, eventFactory, log);

    _retriesBeforeCkptCleanup = new BackoffTimer("BSPullerRetriesBeforeCkptCleanup",
                                                 sourcesConn.getConnectionConfig().getBsPullerRetriesBeforeCkptCleanup());
    _bootstrapFilterConfigs = bootstrapFilterConfigs;
    _remoteExceptionHandler = new RemoteExceptionHandler(sourcesConn, dbusEventBuffer, eventFactory);
    _pullerBufferUtilizationPct = pullerBufferUtilPct;
    _v3BootstrapLock = v3BootstrapLock;
View Full Code Here

Examples of com.linkedin.databus2.core.BackoffTimer

  public DatabusComponentStatus(String componentName,
                                Status status, String detailedMessage,
                                BackoffTimerStaticConfig errorRetriesConf)
  {
    this(componentName, status, detailedMessage,
         new BackoffTimer(componentName + ".errorRetries", errorRetriesConf));
  }
View Full Code Here

Examples of com.linkedin.databus2.core.BackoffTimer

  {
    _config = config;
    _logicalSources = logicalSources;
    _statsCollector = statsCollector;
    _maxRowsInLog = _config.getBootstrapLogSize();
    _retryTimer = new BackoffTimer("BootstrapProducer", config.getRetryConfig());
    _errorRetriesExceeded = false;
    _errorHandler = errorHandler;
    getConnection();
    init();
  }
View Full Code Here

Examples of com.linkedin.databus2.core.BackoffTimer

 
  private BackoffTimer _errorRetry;

  public FetchMaxSCNRequest(BackoffTimerStaticConfig backoffConfig)
  {
    _errorRetry = new BackoffTimer("FetchMaxSCNRequest", backoffConfig);
  }
View Full Code Here

Examples of com.linkedin.databus2.core.BackoffTimer

  {
    super(name);
    _source = source;
    _bootstrapDao = null;
    _config = config;
    _retryTimer = new BackoffTimer(name + "RetryTimer", config.getRetryConfig());
    _statsCollector = statsCollector;
    _srcRm = new RateMonitor(name + "ProducerSourceRateMonitor");
    _totalRm = new RateMonitor(name + "ProducerTotalRateMonitor");

  }
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.