Package org.apache.flume.instrumentation

Examples of org.apache.flume.instrumentation.SourceCounter


    sel.setChannels(Lists.<Channel>newArrayList(chan));
    ChannelProcessor chanProc = new ChannelProcessor(sel);

    // defaults to UTF-8
    MultiportSyslogHandler handler = new MultiportSyslogHandler(
        1000, 10, chanProc, new SourceCounter("test"), "port",
        new ThreadSafeDecoder(Charsets.UTF_8), portCharsets);

    // initialize buffers
    handler.sessionCreated(session1);
    handler.sessionCreated(session2);
View Full Code Here


        ExecSourceConfigurationConstants.DEFAULT_CHARSET));

    shell = context.getString(ExecSourceConfigurationConstants.CONFIG_SHELL, null);

    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

    if (batchSize > 1) {
      batchArrayList = new ArrayList<Event>(batchSize);
    }
    totalEvents = context.getLong("totalEvents", Long.MAX_VALUE);
    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

      logger.warn("Thrift source\'s \"threads\" property must specify an " +
        "integer value: " + context.getString(CONFIG_THREADS));
    }

    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

        deserializerType.equalsIgnoreCase(DEFAULT_DESERIALIZER)) {
      deserializerContext.put(LineDeserializer.MAXLINE_KEY,
          bufferMaxLineLength.toString());
    }
    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

    readBufferSize = context.getInteger(
        SyslogSourceConfigurationConstants.CONFIG_READBUF_SIZE,
        SyslogSourceConfigurationConstants.DEFAULT_READBUF_SIZE);

    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

  }

  @Override
  protected void doConfigure(Context context) throws FlumeException {
    sourceCounter = new SourceCounter(getName());

    initialContextFactoryName = context.getString(JMSSourceConfiguration.
        INITIAL_CONTEXT_FACTORY, "").trim();

    providerUrl = context.getString(JMSSourceConfiguration.PROVIDER_URL, "")
View Full Code Here

        rules.add(generateRule(patternRuleDefinition));
      }
    }

    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

          bufferMaxLineLength.toString());
    }

    maxBackoff = context.getInteger(MAX_BACKOFF, DEFAULT_MAX_BACKOFF);
    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

    keepFields = context.getBoolean(
        SyslogSourceConfigurationConstants.CONFIG_KEEP_FIELDS,
        SyslogSourceConfigurationConstants.DEFAULT_KEEP_FIELDS);

    if (sourceCounter == null) {
      sourceCounter = new SourceCounter(getName());
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.flume.instrumentation.SourceCounter

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.