Package com.linkedin.databus2.core

Examples of com.linkedin.databus2.core.DatabusException


  }

  public static ErrorResponse createUnexpectedControlEventErrorResponse(String msg)
  {
    return new ErrorResponse(BinaryProtocol.RESULT_ERR_UNEXPECTED_CONTROL_EVENT,
                             new DatabusException(msg));
  }
View Full Code Here


  }

  public static ErrorResponse createInvalidEvent(String errMsg)
  {
    return new ErrorResponse(BinaryProtocol.RESULT_ERR_INVALID_EVENT,
                             new DatabusException(errMsg));
  }
View Full Code Here

  }

  public static ErrorResponse createUnsupportedDbusEventVersion(String errMsg)
  {
    return new ErrorResponse(BinaryProtocol.RESULT_ERR_UNSUPPORTED_DBUS_EVENT_VERSION,
                             new DatabusException(errMsg));
  }
View Full Code Here

      processorRegistry.register(ContainerOperationProcessor.COMMAND_NAME,
                                 new ContainerOperationProcessor(null, this));
    }
    catch (SQLException sqle)
    {
      throw new DatabusException("command registration failed", sqle);
    }
    catch (InstantiationException e)
    {
      throw new DatabusException("command registration failed", e);
    }
    catch (IllegalAccessException e)
    {
      throw new DatabusException("command registration failed", e);
    }
    catch (ClassNotFoundException e)
    {
      throw new DatabusException("command registration failed", e);
    }

    LOG.info("Done Initializing Bootstrap HTTP Server");

  }
View Full Code Here

     */

    // Create the event producer
    String uri = pConfig.getUri();
    if(uri == null)
      throw new DatabusException("Uri is required to start the relay");
    uri = uri.trim();
    EventProducer producer = null;
    if (uri.startsWith("jdbc:")) {
      SourceType sourceType = pConfig.getReplBitSetter().getSourceType();
          if (SourceType.TOKEN.equals(sourceType))
            throw new DatabusException("Token Source-type for Replication bit setter config cannot be set for trigger-based Databus relay !!");

      // if a buffer for this partiton exists - we are overwri
      producer = new OracleEventProducerFactory().buildEventProducer(
          pConfig, schemaRegistryService, dbusEventBuffer,
          getMbeanServer(), _inBoundStatsCollectors
View Full Code Here

                  columnScale = scalePrecision.getScale();
              }
              else
              {
                System.out.println("The override for the column [" + columnName + "] is not present, this is expected from the user input in cli");
                throw new DatabusException("Number override not present");
              }
          }

        }
View Full Code Here

    {
      return new ScalePrecision(0,8);
    }
    else
    {
      throw new DatabusException("Unknown datatype, valid datatypes/input are FLOAT/DOUBLE/LONG/INTEGER, please retry.");
    }
  }
View Full Code Here

    if(!tempFile.exists())
    {
      System.out.println("The is no directory at " + _schemaRegistryLocation + ". Attempting to checkout a new copy at this location..");
      ProcessBuilder pb = new ProcessBuilder(PATH_TO_SVN,"checkout",DEFAULT_SCHEMA_REGISTRY_SVN_LOCATION,_schemaRegistryLocation);
      if(executeProcessBuilder(pb) != 0)
        throw new DatabusException("Unable to checkout the code in the given directory");
    }
  }
View Full Code Here

      String dbFieldName;

      if(field.schema().getType() == Schema.Type.ARRAY)
      {

        throw new DatabusException("Field not supported for filtering");
        //TODO fix this

        /*
        String innerSchema = field.getProp("items");
        if(innerSchema == null)
          throw new DatabusException("Unable to the inner schema type of the array");
        Schema innerSchemaParsed = Schema.parse(innerSchema);
        dbFieldName = SchemaHelper.getMetaField(innerSchemaParsed, "dbFieldName");
        */
      }
      else
        dbFieldName = SchemaHelper.getMetaField(field, "dbFieldName");

      if(dbFieldName == null)
        throw new DatabusException("Unable to determine the dbFieldName from the meta information");

      if(!_userFields.contains(dbFieldName.toUpperCase(Locale.ENGLISH)))
        list.remove(i);
      else
        i++;
View Full Code Here

    if (null == srcs)
    {
      String error = "No Sources found for database (" + dbName + "). Available sources are :" + _manager.getDbToSrcMap();
      System.out.println(error);
      throw new DatabusException(error);
    }

    List<String> addSrcs = new ArrayList<String>();
    for (String src : srcs)
    {
View Full Code Here

TOP

Related Classes of com.linkedin.databus2.core.DatabusException

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.