Package com.cloudera.flume.conf.SinkFactory

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


    }
    super.append(e2);
  }

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


    rpt.setLongMetric(A_ACK_UNEXPECTED, unstarted);
    return rpt;
  }

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

  /**
   * Builds a BloomCheckDeco with optional specified number of bits and number
   * of hash functions.
   */
  public static SinkDecoBuilder builder() {
    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context ctx, String... argv) {
        Preconditions.checkArgument(argv.length <= 2,
            "usage: bloomCheck[(sz[,hashes])]");
        int sz = 100000000; // default: 100M bits.
View Full Code Here

  }

  public static SinkDecoBuilder builder() {

    return new SinkDecoBuilder() {
      // In the current version we don't check if the id (argv[0]) is valid
      // chokeId.
      // If it is not, then this this choke decorator will have no throttling
      // limit.
      @Override
View Full Code Here

    }
  }

  public static SinkDecoBuilder builder() {

    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length == 0, "usage: stubborn");
        return new StubbornAppendSink<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 == 1,
            "usage: intervalFlakey(interval)");
View Full Code Here

    e.set(this.attr, digest);
    super.append(e);
  }

  public static SinkDecoBuilder builder() {
    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length == 2,
            "usage: digest(algorithm, attr, [base64=boolean])");
View Full Code Here

    Event e2 = EventImpl.select(e, attrs);
    super.append(e2);
  }

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

    Event e2 = EventImpl.unselect(e, attrs);
    super.append(e2);
  }

  public static SinkDecoBuilder builder() {
    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length >= 1, "usage: mask(attr1,...)");
        return new MaskDecorator<EventSink>(null, argv);
View Full Code Here

    e.set(attr, value);
    super.append(e);
  }

  public static SinkDecoBuilder builder() {
    return new SinkDecoBuilder() {
      @Override
      public EventSinkDecorator<EventSink> build(Context context,
          String... argv) {
        Preconditions.checkArgument(argv.length == 2,
            "usage: value(\"attr\", \"value\")");
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.