Package com.cloudera.flume.master.StatusManager

Examples of com.cloudera.flume.master.StatusManager.NodeState


      }

      @Override
      public void fireStopped(Driver c) {

        NodeState next = NodeState.IDLE;

        try {
          c.getSource().close();
        } catch (IOException e) {
          LOG.error(nodeName + ": error closing: " + e.getMessage());
View Full Code Here


    assertEquals(count, ctr.getCount() + ctr2.getCount());
    assertTrue(ctr.getCount() > 0);
    assertTrue(ctr2.getCount() > 0);

    // the collector can be in ERROR or IDLE state because of the randomness.
    NodeState stateColl = coll.getStatus().state;
    LOG.info("coll exited in state: " + stateColl);
    assertTrue(stateColl.equals(NodeState.IDLE)
        || stateColl.equals(NodeState.ERROR));

    NodeState stateColl2 = coll2.getStatus().state;
    LOG.info("coll2 exited in state: " + stateColl2);
    assertTrue(stateColl2.equals(NodeState.IDLE)
        || stateColl2.equals(NodeState.ERROR));
  }
View Full Code Here

    // check the end states
    assertEquals(count, ctr2.getCount());

    // the collector can be in ERROR or IDLE state because of the randomness.f
    NodeState stateColl2 = coll2.getStatus().state;
    LOG.info("coll2 exited in state: " + stateColl2);
    assertTrue(stateColl2.equals(NodeState.IDLE)
        || stateColl2.equals(NodeState.ERROR));
  }
View Full Code Here

    LOG.info("primary collector count   = " + ctr.getCount());
    LOG.info("secondary collector count = " + ctr2.getCount());
    assertEquals(count, ctr.getCount() + ctr2.getCount());

    // the collector can be in ERROR or IDLE state because of the randomness.
    NodeState stateColl = coll.getStatus().state;
    LOG.info("coll exited in state: " + stateColl);
    assertTrue(stateColl.equals(NodeState.IDLE)
        || stateColl.equals(NodeState.ERROR));

    NodeState stateColl2 = coll2.getStatus().state;
    LOG.info("coll2 exited in state: " + stateColl2);
    assertTrue(stateColl2.equals(NodeState.IDLE)
        || stateColl2.equals(NodeState.ERROR));
  }
View Full Code Here

    // check the end states
    assertEquals(count, ctr.getCount() + ctr2.getCount());

    // the collector can be in ERROR or IDLE state because of the randomness.
    NodeState stateColl = coll.getStatus().state;
    LOG.info("coll exited in state: " + stateColl);
    assertTrue(stateColl.equals(NodeState.IDLE)
        || stateColl.equals(NodeState.ERROR));

    NodeState stateColl2 = coll2.getStatus().state;
    LOG.info("coll2 exited in state: " + stateColl2);
    assertTrue(stateColl2.equals(NodeState.IDLE)
        || stateColl2.equals(NodeState.ERROR));
  }
View Full Code Here

    assertEquals("synth(100)", fcd.sourceConfig);
    assertTrue(0 != fcd.timestamp);

    sh.executeLine("waitForNodesDone 0 foo");
    n.getLivenessManager().heartbeatChecks();
    NodeState status = flumeMaster.getStatMan().getNodeStatuses().get("foo").state;
    NodeState idle = NodeState.IDLE;
    assertEquals(status, idle);
    // TODO: uncomment when there is a clean way to get at the reportable
    n.stop();
  }
View Full Code Here

    assertEquals("synth(100)", fcd.sourceConfig);
    assertTrue(0 != fcd.timestamp);

    sh.executeLine("waitForNodesDone 0 foo bar baz");
    n.getLivenessManager().heartbeatChecks();
    NodeState status = flumeMaster.getStatMan().getNodeStatuses().get(nodename).state;
    NodeState idle = NodeState.IDLE;
    assertEquals(status, idle);
    AccumulatorSink cnt = (AccumulatorSink) ReportManager.get().getReportable(
        "count");
    assertEquals(100, cnt.getCount());
    AccumulatorSink cnt2 = (AccumulatorSink) ReportManager.get().getReportable(
View Full Code Here

    sh.executeLine("waitForNodesActive 0 foo");
    n.getLivenessManager().heartbeatChecks();
    NodeStatus status = flumeMaster.getStatMan().getNodeStatuses()
        .get(nodename);
    NodeState active = NodeState.ACTIVE;
    assertEquals(status.state, active);

    sh.executeLine("waitForNodesDone 0 foo");
    n.getLivenessManager().heartbeatChecks();
    status = flumeMaster.getStatMan().getNodeStatuses().get(nodename);
    NodeState idle = NodeState.IDLE;
    assertEquals(status.state, idle);
    AccumulatorSink cnt = (AccumulatorSink) ReportManager.get().getReportable(
        "count");
    assertEquals(100, cnt.getCount());
    n.stop();
View Full Code Here

    assertEquals("synth(100)", fcd.sourceConfig);
    assertTrue(0 != fcd.timestamp);

    sh.executeLine("waitForNodesDone 0 foo");
    n.getLivenessManager().heartbeatChecks();
    NodeState status = flumeMaster.getStatMan().getNodeStatuses().get("foo").state;
    NodeState idle = NodeState.IDLE;
    assertEquals(status, idle);
    // TODO: uncomment when there is a clean way to get at the reportable
    n.stop();
  }
View Full Code Here

    assertEquals("synth(100)", fcd.sourceConfig);
    assertTrue(0 != fcd.timestamp);

    sh.executeLine("waitForNodesDone 0 foo bar baz");
    n.getLivenessManager().heartbeatChecks();
    NodeState status = flumeMaster.getStatMan().getNodeStatuses().get(nodename).state;
    NodeState idle = NodeState.IDLE;
    assertEquals(status, idle);
    AccumulatorSink cnt = (AccumulatorSink) ReportManager.get().getReportable(
        "count");
    assertEquals(100, cnt.getCount());
    AccumulatorSink cnt2 = (AccumulatorSink) ReportManager.get().getReportable(
View Full Code Here

TOP

Related Classes of com.cloudera.flume.master.StatusManager.NodeState

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.