Package com.linkedin.databus.core

Examples of com.linkedin.databus.core.DbusEventV1Factory


    super();
    _log = null != log ? log : Logger.getLogger(BootstrapTableReaderV2.class);
    _metadataFilters = metadataFilters;
    _tableName = tableName;
    _decoder = new DbusEventAvroDecoder(schemaSet);
    _eventFactory  = new DbusEventV1Factory();
    _eventHandler = eventHandler;
    _eventFilters = new ArrayList<BootstrapReaderFilter>(eventFilters);
    _bstConfig = bstConfig;
    _bootstrapConn = createBstConnection();
    _jdbcConn = _bootstrapConn.getDBConn();
View Full Code Here


  public BootstrapEventWriter(WritableByteChannel writeChannel,
                              long clientFreeBufferSize,
                              DbusFilter filter,
                              Encoding enc)
  {
    _eventFactory = new DbusEventV1Factory();
    _event = null;
    _writeChannel = writeChannel;
    _encoding = enc;
    _clientFreeBufferSize = clientFreeBufferSize;
    _bytesSent = 0;
View Full Code Here

    public HttpRelay(StaticConfig config, PhysicalSourceStaticConfig[] pConfigs)
    throws IOException, InvalidConfigException, DatabusException
    {
      this(config, pConfigs, SourceIdNameRegistry.createFromIdNamePairs(config.getSourceIds()),
           (new StandardSchemaRegistryFactory(config.getSchemaRegistry())).createSchemaRegistry(),
           new DbusEventV1Factory());
    }
View Full Code Here

    public HttpRelay(StaticConfig config, PhysicalSourceStaticConfig [] pConfigs,
                     SourceIdNameRegistry sourcesIdNameRegistry,
                     SchemaRegistryService schemaRegistry)
    throws IOException, InvalidConfigException, DatabusException
    {
      this(config, pConfigs, sourcesIdNameRegistry, schemaRegistry, new DbusEventV1Factory());
    }
View Full Code Here

  public static ChannelBuffer streamToChannelBuffer(DbusEventBuffer buf, Checkpoint cp,
                                                    int maxSize,
                                                    DbusEventsStatisticsCollector stats)
      throws ScnNotFoundException, OffsetNotFoundException, IOException
  {
    ChannelBuffer tmpBuf = ChannelBuffers.buffer(new DbusEventV1Factory().getByteOrder(), maxSize);
    OutputStream tmpOS = new ChannelBufferOutputStream(tmpBuf);
    WritableByteChannel tmpChannel = java.nio.channels.Channels.newChannel(tmpOS);

    StreamEventsArgs args = new StreamEventsArgs(maxSize).setStatsCollector(stats);
View Full Code Here

  public DbusEventGenerator(long startScn, Vector<Short> srcIdList)
  {
    _startScn = startScn;
    _srcIdList= srcIdList;
    _eventFactory = new DbusEventV1Factory();
  }
View Full Code Here

                                                                            byte version)
  {
    DbusEventFactory eventFactory;
    if (version == DbusEventFactory.DBUS_EVENT_V1)
    {
      eventFactory = new DbusEventV1Factory();
    }
    else if (version == DbusEventFactory.DBUS_EVENT_V2)
    {
      eventFactory = new DbusEventV2Factory();
    }
View Full Code Here

TOP

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

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.