Examples of executeLine()


Examples of com.cloudera.flume.util.FlumeShell.executeLine()

    flumeMaster.getStatMan().updateHeartbeatStatus("foo", "foo", "foo",
        NodeState.HELLO, 1);
    assertNotNull(flumeMaster.getStatMan().getStatus("foo"));

    // no exception when called with node that doesn't exist.
    sh.executeLine("exec purge wackadoodle");

    // successful case
    sh.executeLine("exec purge foo");
    Clock.sleep(250);
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

    // no exception when called with node that doesn't exist.
    sh.executeLine("exec purge wackadoodle");

    // successful case
    sh.executeLine("exec purge foo");
    Clock.sleep(250);

    NodeStatus stat = flumeMaster.getStatMan().getStatus("foo");
    assertNull(stat);
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

        NodeState.HELLO, 1);

    assertNotNull(flumeMaster.getStatMan().getStatus("foo"));
    assertNotNull(flumeMaster.getStatMan().getStatus("bar"));
    assertNotNull(flumeMaster.getStatMan().getStatus("baz"));
    sh.executeLine("exec purgeAll");
    Clock.sleep(250);

    assertNull(flumeMaster.getStatMan().getStatus("foo"));
    assertNull(flumeMaster.getStatMan().getStatus("foo"));
    assertNull(flumeMaster.getStatMan().getStatus("foo"));
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

      TTransportException, IOException {
    assertEquals(0, flumeMaster.getSpecMan().getAllConfigs().size());

    FlumeShell sh = new FlumeShell();

    sh
        .executeLine("connect localhost:"
            + FlumeConfiguration.DEFAULT_ADMIN_PORT);
    sh.executeLine("exec config localhost null null");
    Clock.sleep(250);
    assertTrue(flumeMaster.getSpecMan().getAllConfigs().size() > 0);
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

      TTransportException, IOException {
    assertEquals(0, flumeMaster.getSpecMan().getAllConfigs().size());

    FlumeShell sh = new FlumeShell();

    sh
        .executeLine("connect localhost:"
            + FlumeConfiguration.DEFAULT_ADMIN_PORT);
    sh.executeLine("exec config localhost null null");
    Clock.sleep(250);
    assertTrue(flumeMaster.getSpecMan().getAllConfigs().size() > 0);
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

    FlumeShell sh = new FlumeShell();

    sh
        .executeLine("connect localhost:"
            + FlumeConfiguration.DEFAULT_ADMIN_PORT);
    sh.executeLine("exec config localhost null null");
    Clock.sleep(250);
    assertTrue(flumeMaster.getSpecMan().getAllConfigs().size() > 0);
  }

  /**
 
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

  public void testSetChokeLimit() throws InterruptedException,
      TTransportException, IOException {

    FlumeShell sh = new FlumeShell();

    sh
        .executeLine("connect localhost:"
            + FlumeConfiguration.DEFAULT_ADMIN_PORT);
    sh.executeLine("exec setChokeLimit physNode choke 786");
    Clock.sleep(250);
    assertEquals(786, flumeMaster.getSpecMan().getChokeMap("physNode").get(
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

    FlumeShell sh = new FlumeShell();

    sh
        .executeLine("connect localhost:"
            + FlumeConfiguration.DEFAULT_ADMIN_PORT);
    sh.executeLine("exec setChokeLimit physNode choke 786");
    Clock.sleep(250);
    assertEquals(786, flumeMaster.getSpecMan().getChokeMap("physNode").get(
        "choke").intValue());
  }
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

  public void testConnectMultiConfig() throws InterruptedException,
      TTransportException, IOException {
    assertEquals(0, flumeMaster.getSpecMan().getAllConfigs().size());

    FlumeShell sh = new FlumeShell();
    sh
        .executeLine("connect localhost:"
            + FlumeConfiguration.DEFAULT_ADMIN_PORT);
    sh.executeLine("exec multiconfig 'localhost:text(\"/var/log/messages\") | "
        + "{delay (250) => console(\"avrojson\") };'");
    Clock.sleep(250);
View Full Code Here

Examples of com.cloudera.flume.util.FlumeShell.executeLine()

    FlumeShell sh = new FlumeShell();
    sh
        .executeLine("connect localhost:"
            + FlumeConfiguration.DEFAULT_ADMIN_PORT);
    sh.executeLine("exec multiconfig 'localhost:text(\"/var/log/messages\") | "
        + "{delay (250) => console(\"avrojson\") };'");
    Clock.sleep(250);
    assertTrue(flumeMaster.getSpecMan().getAllConfigs().size() > 0);
  }
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.