Package com.cloudera.flume.conf.SinkFactory

Examples of com.cloudera.flume.conf.SinkFactory.SinkDecoBuilder


    b.build(new Context(), "2234", "123", "r3414");
  }

  @Test(expected = IllegalArgumentException.class)
  public void testBloomGenBuilderFail2() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    b.build(new Context(), "r3414");
  }
View Full Code Here


    b.build(new Context(), "r3414");
  }

  @Test
  public void testBloomCheckBuilders() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    Context ctx = new Context();
    b.build(ctx, "2234", "123");
    b.build(ctx, "1234");
    b.build(ctx);
  }
View Full Code Here

    b.build(ctx);
  }

  @Test(expected = IllegalArgumentException.class)
  public void testBloomCheckBuilderFail() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    b.build(new Context(), "2234", "123", "r3414");
  }
View Full Code Here

    b.build(new Context(), "2234", "123", "r3414");
  }

  @Test(expected = IllegalArgumentException.class)
  public void testBloomCheckBuilderFail2() {
    SinkDecoBuilder b = BloomGeneratorDeco.builder();
    b.build(new Context(), "r3414");
  }
View Full Code Here

  /**
   * End to end ack version, with logical node context (to isolate wals.)
   * **/
  public static SinkDecoBuilder builderEndToEndDir() {
    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length <= 3,
            "usage: ackedWriteAhead[(maxMillis,walnode,checkMs)]");
View Full Code Here

    rpt.setStringMetric(A_LOGICALLY_OPEN, "" + logicallyOpen);
    return rpt;
  }

  public static SinkDecoBuilder builder() {
    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length == 0);
        return new LazyOpenDecorator<EventSink>(null);
View Full Code Here

    }
    super.append(e);
  }

  public static SinkDecoBuilder builder() {
    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length == 0 || argv.length == 1,
            "usage: benchinject[(tag)]");
View Full Code Here

    }
  }

  public static SinkDecoBuilder builder() {

    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length < 2, "usage: repeat(init=1)");
        int mult = 1;
View Full Code Here

    }
  }

  @Test(expected = IllegalArgumentException.class)
  public void testBadE2eBuilderArgs() {
    SinkDecoBuilder b = NaiveFileWALDeco.builderEndToEndDir();
    b.build(LogicalNodeContext.testingContext(), "foo", "bar");
  }
View Full Code Here

        this.argv = argv;
      }
    }

    SinkFactoryImpl sf = new SinkFactoryImpl();
    sf.setDeco("context", new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        return new ContextDeco(null, context, argv);
      }
View Full Code Here

TOP

Related Classes of com.cloudera.flume.conf.SinkFactory.SinkDecoBuilder

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.