Package com.cloudera.flume.core

Examples of com.cloudera.flume.core.Driver.waitForAtLeastState()


    // update config node to something that will be interrupted.
    LOG.info("!!! decommissioning node on master");
    master.getSpecMan().removeLogicalNode(lnode);
    liveMan.heartbeatChecks();
    assertTrue("Attempting to stop driver timed out",
        d.waitForAtLeastState(DriverState.ERROR, 15000));
  }

}
View Full Code Here


    // the collector can be in ERROR or IDLE state because of the randomness.
    assertTrue("c1 failed to get to in IDLE state",
        c1driver.waitForAtLeastState(DriverState.IDLE, 1000));
    assertTrue("c2 failed to get to in IDLE state",
        c2driver.waitForAtLeastState(DriverState.IDLE, 1000));

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

    // the collector can be in ERROR or IDLE state because of the randomness.
    assertTrue("c1 failed to get to in IDLE state",
        c1driver.waitForAtLeastState(DriverState.IDLE, 1000));
    assertTrue("c2 failed to get to in IDLE state",
        c2driver.waitForAtLeastState(DriverState.IDLE, 1000));

    //
    // NodeState stateColl = coll.getStatus().state;
    // LOG.info("coll exited in state: " + stateColl);
    // assertTrue(stateColl.equals(NodeState.IDLE)
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.