Package com.linkedin.databus.core

Examples of com.linkedin.databus.core.DbusErrorEvent


    DbusEventInternalReadable errorEvent = null;
    if (exception instanceof BootstrapDatabaseTooOldException)
    {
      errorEvent = _eventFactory.createErrorEvent(
          new DbusErrorEvent(exception, DbusEventInternalWritable.BOOTSTRAPTOOOLD_ERROR_SRCID));
    }
    else if (exception instanceof PullerRetriesExhaustedException)
    {
      errorEvent = _eventFactory.createErrorEvent(
          new DbusErrorEvent(exception, DbusEventInternalWritable.PULLER_RETRIES_EXPIRED));
    }
    else
    {
      throw new InvalidEventException("Got an unrecognizable exception ");
    }
View Full Code Here


  }

  private boolean processErrorEvent(DispatcherState curState, DbusEventInternalReadable nextEvent)
  {
    boolean success = false;
    DbusErrorEvent errorEvent = null;

    if (nextEvent.isErrorEvent())
    {
      errorEvent = DbusEventSerializable.getErrorEventFromDbusEvent(nextEvent);

      if (null == errorEvent)
      {
        _log.error("Null error event received at dispatcher");
      }
      else
      {
        _log.info("Delivering error event to consumers: " + errorEvent);
        ConsumerCallbackResult callbackResult = ConsumerCallbackResult.ERROR;
        try
        {
          callbackResult = _asyncCallback.onError(errorEvent.returnActualException());
        }
        catch (RuntimeException e)
        {
          _log.error("Internal onError error: " + e.getMessage(), e);
        }
View Full Code Here

TOP

Related Classes of com.linkedin.databus.core.DbusErrorEvent

Copyright © 2018 www.massapicom. 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.