Examples of AckListener


Examples of com.cloudera.flume.handlers.endtoend.AckListener

      flushRollAcks();
      LOG.debug("closed  roll detect deco {}", tag);
    }

    void flushRollAcks() throws IOException {
      AckListener master = ackDest;
      Collection<String> acktags;
      synchronized (rollAckSet) {
        acktags = new ArrayList<String>(rollAckSet);
        rollAckSet.clear();
        LOG.debug("Roll closed, pushing acks for " + tag + " :: " + acktags);
      }

      for (String at : acktags) {
        master.end(at);
      }
    }
View Full Code Here

Examples of com.cloudera.flume.handlers.endtoend.AckListener

      InterruptedException {
    // This will register the FlumeNode with a MockMasterRPC so it doesn't go
    // across the network
    MockMasterRPC mock = new MockMasterRPC();
    FlumeNode node = new FlumeNode(mock, false /* starthttp */, false /* onshot */);
    AckListener pending = node.getAckChecker().getAgentAckQueuer();

    // initial source of data.
    MemorySinkSource mem = new MemorySinkSource();
    byte[] tag = "my tag".getBytes();
    AckChecksumInjector<EventSink> ackinj = new AckChecksumInjector<EventSink>(
View Full Code Here

Examples of com.cloudera.flume.handlers.endtoend.AckListener

      flushRollAcks();
      LOG.debug("closed  roll detect deco {}", tag);
    }

    void flushRollAcks() throws IOException {
      AckListener master = ackDest;
      Collection<String> acktags;
      synchronized (rollAckSet) {
        acktags = new ArrayList<String>(rollAckSet);
        rollAckSet.clear();
        LOG.debug("Roll closed, pushing acks for " + tag + " :: " + acktags);
      }

      for (String at : acktags) {
        master.end(at);
      }
    }
View Full Code Here

Examples of com.cloudera.flume.handlers.endtoend.AckListener

  public void testForceRetransmit() throws FlumeSpecException, IOException {
    // This will register the FlumeNode with a MockMasterRPC so it doesn't go
    // across the network
    MockMasterRPC mock = new MockMasterRPC();
    FlumeNode node = new FlumeNode(mock, false /* starthttp */, false /* onshot */);
    AckListener pending = node.getAckChecker().getAgentAckQueuer();

    // initial source of data.
    MemorySinkSource mem = new MemorySinkSource();
    byte[] tag = "my tag".getBytes();
    AckChecksumInjector<EventSink> ackinj = new AckChecksumInjector<EventSink>(
View Full Code Here

Examples of com.cloudera.flume.handlers.endtoend.AckListener

    @Override
    public void close() throws IOException {
      super.close();

      AckListener master = FlumeNode.getInstance().getCollectorAckListener();
      Collection<String> acktags = rollAckMap.get(curRollTag);
      LOG.debug("Roll closed, pushing acks for " + curRollTag + " :: "
          + acktags);

      for (String at : acktags) {
        master.end(at);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.