Package org.apache.flume.channel.jdbc.impl

Examples of org.apache.flume.channel.jdbc.impl.JdbcChannelProviderImpl


  private static JdbcChannelProvider PROVIDER;

  public static synchronized JdbcChannelProvider getProvider(
      Context context, String name) {
    if (PROVIDER == null) {
      PROVIDER = new JdbcChannelProviderImpl();
      PROVIDER.initialize(context);
    }

    if (!INSTANCES.add(name)) {
      throw new JdbcChannelException("Attempt to initialize multiple "
View Full Code Here


    LOGGER.info("Derby Properties: " + derbyCtx);
  }

  @Test
  public void testDerbyChannelCapacity() {
    provider = new JdbcChannelProviderImpl();

    derbyCtx.put(ConfigurationConstants.CONFIG_MAX_CAPACITY, "10");

    provider.initialize(derbyCtx);
View Full Code Here

    }
  }

  @Test
  public void testDerbySetup() {
    provider = new JdbcChannelProviderImpl();

    provider.initialize(derbyCtx);

    Transaction tx1 = provider.getTransaction();
    tx1.begin();
View Full Code Here

   * Creates 120 events split over 10 channels, stores them via multiple
   * simulated sources and consumes them via multiple simulated channels.
   */
  @Test
  public void testEventWithSimulatedSourceAndSinks() throws Exception {
    provider = new JdbcChannelProviderImpl();
    provider.initialize(derbyCtx);

    Map<String, List<MockEvent>> eventMap =
        new HashMap<String, List<MockEvent>>();

View Full Code Here

  /**
   * creates 80 events split over 5 channels, stores them
   */
  @Test
  public void testPeristingEvents() {
    provider = new JdbcChannelProviderImpl();
    provider.initialize(derbyCtx);

    Map<String, List<MockEvent>> eventMap =
        new HashMap<String, List<MockEvent>>();

View Full Code Here

    LOGGER.info("Derby Properties: " + derbyCtx);
  }

  @Test
  public void testDerbyChannelCapacity() {
    provider = new JdbcChannelProviderImpl();

    derbyCtx.put(ConfigurationConstants.CONFIG_MAX_CAPACITY, "10");

    provider.initialize(derbyCtx);
View Full Code Here

    }
  }

  @Test
  public void testDerbySetup() {
    provider = new JdbcChannelProviderImpl();

    provider.initialize(derbyCtx);

    Transaction tx1 = provider.getTransaction();
    tx1.begin();
View Full Code Here

   * Creates 120 events split over 10 channels, stores them via multiple
   * simulated sources and consumes them via multiple simulated channels.
   */
  @Test
  public void testEventWithSimulatedSourceAndSinks() throws Exception {
    provider = new JdbcChannelProviderImpl();
    provider.initialize(derbyCtx);

    Map<String, List<MockEvent>> eventMap =
        new HashMap<String, List<MockEvent>>();

View Full Code Here

  /**
   * creates 80 events split over 5 channels, stores them
   */
  @Test
  public void testPeristingEvents() {
    provider = new JdbcChannelProviderImpl();
    provider.initialize(derbyCtx);

    Map<String, List<MockEvent>> eventMap =
        new HashMap<String, List<MockEvent>>();

View Full Code Here

    LOGGER.info("Derby Properties: " + derbyCtx);
  }

  @Test
  public void testDerbyChannelCapacity() {
    provider = new JdbcChannelProviderImpl();

    derbyCtx.put(ConfigurationConstants.CONFIG_MAX_CAPACITY, "10");

    provider.initialize(derbyCtx);
View Full Code Here

TOP

Related Classes of org.apache.flume.channel.jdbc.impl.JdbcChannelProviderImpl

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.