Package org.apache.flume

Examples of org.apache.flume.CounterGroup


  private CounterGroup counterGroup;
  private List<Event> batchArrayList;

  public SequenceGeneratorSource() {
    sequence = 0;
    counterGroup = new CounterGroup();
  }
View Full Code Here


  @Override
  public void start() {
    logger.info("Exec source starting with command:{}", command);

    executor = Executors.newSingleThreadExecutor();
    counterGroup = new CounterGroup();

    runner = new ExecRunnable(command, getChannelProcessor(), counterGroup,
        restart, restartThrottle, logStderr, bufferCount);

    // FIXME: Use a callback-like executor / future to signal us upon failure.
View Full Code Here

  public void start() {
    logger.info("SpoolDirectorySource source starting with directory:{}",
        spoolDirectory);

    executor = Executors.newSingleThreadScheduledExecutor();
    counterGroup = new CounterGroup();

    File directory = new File(spoolDirectory);
    reader = new SpoolingFileLineReader(directory, completedSuffix,
        bufferMaxLines, bufferMaxLineLength);
    runner = new SpoolDirectoryRunnable(reader, counterGroup);
View Full Code Here

    public void unknown(String a, String b, String c, String d) {
    }
  }

  public IRCSink() {
    counterGroup = new CounterGroup();
  }
View Full Code Here

  @Override
  public void start() {
    logger.info("Exec source starting with command:{}", command);

    executor = Executors.newSingleThreadExecutor();
    counterGroup = new CounterGroup();

    runner = new ExecRunnable(command, getChannelProcessor(), counterGroup,
        restart, restartThrottle, logStderr);

    // FIXME: Use a callback-like executor / future to signal us upon failure.
View Full Code Here

    port = Integer.parseInt(context.getString("port"));
    host = context.getString("host");
  }

  public ThriftLegacySource() {
    counterGroup = new CounterGroup();
  }
View Full Code Here

  private PathManager pathController;
  private volatile boolean shouldRotate;

  public RollingFileSink() {
    counterGroup = new CounterGroup();
    pathController = new PathManager();
    shouldRotate = false;
  }
View Full Code Here

  private CounterGroup counterGroup;
  private int batchSize = DFLT_BATCH_SIZE;

  public NullSink() {
    counterGroup = new CounterGroup();
  }
View Full Code Here

  private ScheduledExecutorService executorService;
  private CounterGroup counterGroup;

  public AbstractFileConfigurationProvider() {
    lifecycleState = LifecycleState.IDLE;
    counterGroup = new CounterGroup();
  }
View Full Code Here

  private CounterGroup counterGroup;
  private byte[] buffer;
  private Event event;

  public StressSource() {
    counterGroup = new CounterGroup();

  }
View Full Code Here

TOP

Related Classes of org.apache.flume.CounterGroup

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.